leochabi / selenium-vba

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

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

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 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 8 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 8 years ago

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