how to execute Js Script in Selenium Webdriver C# -


this line code returns number of elements. document.getelementsbyclassname("entry entrywriteable");-> returns 70 elements

i want implement loop that, below line of code execute element.

document.getelementsbyclassname("entry entrywriteable")[i].value; 

can 1 me how impliment in c# selenium ?

in order execute js in selenium on c# should use next code:

((ijavascriptexecutor) driver).executescript("your code")); 

so can execute js code want.

the executescript returns object can typify it.


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -