What is the syntax of Javascript ?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

What is the syntax of Javascript ?

javelearner
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! 


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/ad8745fc-7096-4731-970c-7601a7038056%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.