How to select a value from a list box by using Selenium
web-driver?

Answer Posted / elite

We need to get all options using String[] options = Selenium.getSelectOptions
and use selenium.select(options[2]) which will select second option

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

filter the array values without using filter function?

1653


Explain about scrrun.dll?

528


Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.

1584


There are 5 web pages.write a script to click the button on 4th web page.

2936


Sub link() Dim k As Integer Dim rand As Integer Dim URL As String Dim foldernum As Integer Dim folderstring As String Dim filenum As Integer Dim filestring As String k = 1 'for AC Numbers For i = 11 To 40 foldernum = 0 foldernum = 1000 + i folderstring = CStr(foldernum) folderstring = Mid(folderstring, 2, 3) folder = "ac" & folderstring 'folderstring = Sheets(2).Cells(i, 1) ' for Number of Random files For j = 1 To 10 rand = Int(Rnd * (200 - 1) + 1) filenum = 0 filenum = 1000 + rand filestring = CStr(filenum) filestring = Mid(filestring, 2, 3) 'URL = "http://ceobihar.nic.in/PSCDROM/ac" & folderstring & "/i" & folderstring & "0" & filestring & ".pdf" URL = "http://www.elections.tn.gov.in/pdfs/dt1/" & folder & "/" & folder & filestring & ".pdf" ' URL =http://www.wb.nic.in/wbeco/EROLLS/PDF/English/A001/a0010105 .pdf Cells(k, 1) = folderstring Cells(k, 2) = folder Cells(k, 3) = filestring Cells(k, 3) = URL k = k + 1 Next j Next i End Sub plz define it

2233






Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com

1043


How can you destroy an object in vbscript?

639


Explain the operator precedence in vb script?

648


Explain about .wsf files?

618


How will you get a subset of a array in vbscript?

583


Which loop is used in case of arrays in the vbscript language?

518


How to capture a runtime error in vbscript?

628


What is the difference between a dictionary and an array?

575


What is the difference between do until loop and do while loop?

534


Is vbscript a case-sensitive or case-insensitive?

750