7Gabriel / selenium-vba

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

Click failed (id=xxxx not found) #145

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Operating system and version (32/64bit) :64 bits
.Net Framework version :
Office name and version(32/64bit) : 64 bits
Browser name and version :chrome
SeleniumWrapper version :SeleniumWrapperSetup-1.0.23.0.exe

What steps will reproduce the problem with a public website ?

1. Dim selDriver As Object
2. Set selDriver = CreateObject("SeleniumWrapper.WebDriver")

3. selDriver.Start "chrome", "http://www.chip.gov.co/"
4. selDriver.Open "http://www.chip.gov.co"
5. selDriver.Click "link = Consultas"
6. selDriver.Click "id=j_id114:j_id116:j_id126:InformacionEnviada:out"

What is the expected output? What do you see instead?

lines 5 o 6 doesnt work

Original issue reported on code.google.com by migueldi...@gmail.com on 24 Mar 2015 at 2:15

GoogleCodeExporter commented 8 years ago
Selenium 1 commands are being deprecated and no longer maintained, you should 
use the Selenium 2 commands instead:

Set driver = CreateObject("SeleniumWrapper.WebDriver")
driver.start "chrome", "http://www.chip.gov.co"
driver.open "/"
driver.findElementByLinkText("Consultas", 5000).Click
driver.findElementByLinkText("Informe al Ciudadano").Click

Or using ids:

Set driver = CreateObject("SeleniumWrapper.WebDriver")
driver.start "chrome", "http://www.chip.gov.co"
driver.open "/"
driver.findElementByCssSelector("#j_id114\\:j_id116\\:j_id126 > a", 5000).Click
driver.findElementById("j_id114:j_id116:j_id126:InformacionEnviada:out").Click

Original comment by florentbr on 24 Mar 2015 at 4:43