danwagnerco / selenium-vba

Automatically exported from code.google.com/p/selenium-vba
1 stars 0 forks source link

Is it possible to use javascript queries within seleniumwrapper vba code #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Operating system :
.Net Framework version :
Office Version : 2010
SeleniumWrapper version :latest

What is your issue ?

Hello , 

I would like to know if it would be possible to use javascript within 
seleniumwrapper , is this possible ?
Thaks

Original issue reported on code.google.com by alam...@gmail.com on 14 Oct 2013 at 12:19

GoogleCodeExporter commented 9 years ago
Yes you can execute some JavaScript code from the driver:
driver.executeScript "alert('Hello world!');"

If you are referring to JQuery to select elements, I recommend you to use the 
driver.findElementByCssSelector and to read this page about CSS selectors :
http://sauceio.com/index.php/2010/01/selenium-totw-css-selectors-in-selenium-dem
ystified

Original comment by florentbr on 14 Oct 2013 at 2:31

GoogleCodeExporter commented 9 years ago

Original comment by florentbr on 8 Sep 2014 at 5:40