Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to use javascriptexecutor for loop in selenium c#

String script3 = "return document.getElementsByTagName('g')[" + f9 + "].textContent";
n = (String) ((JavascriptExecutor) driver).executeScript(script3, hiddenDiv); 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascriptexecutor #loop #selenium
ADD COMMENT
Topic
Name
8+3 =