Posts

selenium - selenide code for how to fetch dropdown list value? -

i trying fetch values dropdown list using selenide . using selectoptionbyvalue("0") can fetch 1 value.but need values inside dropdown list.let me know how using selenide code maybe, try use this: $$(by.xpath("//path/to/element")).iterator().foreachremaining(element -> { /** * code here, describe here each element found xpath * e.x. * element.click(); */ }); i used click through links on page specific class attribute.

Detect when an HTML5 video finishes -

how detect when html5 <video> element has finished playing? you can add event listener 'ended' first param like : <video src="video.ogv" id="myvideo"> video not supported </video> <script type='text/javascript'> document.getelementbyid('myvideo').addeventlistener('ended',myhandler,false); function myhandler(e) { // want after event } </script>

debugging - How to debug lambda expression in Java 8 using Eclipse? -

i trying debug simple java application using lambda expression. not able debug lambda expression using normal eclipse debugger. you can transform expressions statements. list<string> list = new arraylist<>(); // expression boolean allmatch1 = list.stream().allmatch(s -> s.contains("hello")); // statement boolean allmatch2 = list.stream().allmatch(s -> { return s.contains("hello"); }); you can set break-point on return s.contains("hello"); line

OPenLayers 3.18.2 Is there any way to see when several placemarks superimposed on the same positions? -

Image
i use latest version of openlayers 3, , before asked question on is there way see when several placemarks superimposed on same positions? not yet functional. figure below, google earth, have way see it. thank you.

javascript - Ionic Form Can't Change Option on Select -

i trying create form in ionic, including dropdown list. previously, had following code: <label class="item item-input item-select"> <span class="input-label">* age</span> <select ng-model="data.child1.age" required> <option ng-value="7">year 7 (11-12)</option> <option ng-value="8">year 8 (12-13)</option> <option ng-value="9">year 9 (13-14)</option> <option ng-value="10">year 10 (14-15)</option> <option ng-value="11">year 11 (15-16)</option> <option ng-value="12">year 12 (16-17)</option> <option ng-value="13">year 13 (17-18)</option> </select> </label> th...

ios - Thread:1 Signal SIGAGBRT -

why thread:1 signal sigagbrt within code? don't know change fix error. application starts , press button app cancels out , gives me error. import uikit class viewcontroller: uiviewcontroller { @iboutlet var textfieldinput: uitextfield! @iboutlet var lacelsius: uilabel! @iboutlet var lafahrenheit: uilabel! override func viewdidload() { super.viewdidload() // additional setup after loading view, typically nib. } override func didreceivememorywarning() { super.didreceivememorywarning() // dispose of resources can recreated. } @ibaction func btn(sender: uibutton) { var c_out = 0.0 var f_out = 0.0 var inputvalue = 0.0 let textinput = nsstring(string: textfieldinput.text!) inputvalue = textinput.doublevalue c_out = (inputvalue-32)*5/9 f_out = inputvalue * 1.8 + 32 self.lacelsius.text = nsstring(format: "%3.2f" ,c_out) string sel...

c# - Winforms SplitterPanel, z-index of child overlap split -

Image
i working splitterpanel in winforms on right hand side want custom dropdown list control displays 2 columns dropdown list. the problem there being 2 columns want able have larger dropdown list area actual dropdown, , therefore overlap splitterpanel if list doesn't fit in split area. i have tried using .bringtofront(); , not work on splitterpanel , control hidden. come web background have used z-index stumped winforms. see below image of issue. does know how can resolve this? the z-index determine child controls sit higher , can overlap others child controls. never helps when want (real opposed drop downs or menues) child overlap own container . never happens; , since checkedlistbox child of split panel never overlap it. you need make checkedlistbox sit not inside splitter panel in parent 'brethren'. let's assume splitcontainer sits in tabpage tabpage8 . can show moving tabpage: movectltotarget(tabpage8, checkedlistbox1); using function...