What is the syntax of Javascript ?

13 views
Skip to first unread message

javel...@gmail.com

unread,
May 13, 2018, 9:29:45 AM5/13/18
to Selenium Users
Hi there, 

Can anyone share the meaning of 'arguments[0] and  what is the meaning of " ' " . in the following line code: 

JavascriptExecuter js = ((JavascriptExecutor) driver);

((JavascriptExecutor) AmazonHw.driver).executeScript(
"arguments[0].value=" + "'" + readExcel("Sheet2", 1, 0) + "'",
.driver.findElement(By.xpath("//input[@id='twotabsearchtextbox']")));

Thanks! 


Reply all
Reply to author
Forward
0 new messages