RemoteWebDriver doesn't work with xpath
Posted
by
questions
on Stack Overflow
See other posts from Stack Overflow
or by questions
Published on 2012-07-07T21:13:07Z
Indexed on
2012/07/07
21:15 UTC
Read the original article
Hit count: 290
I'm trying to use RemoteWebDriver with xpath locators on google.com, this is the log from node running firefox. It receives all those commands but doesn't executes them. I dont see any activity with browser, other than opening google homepage.
14:05:05.671 INFO - Executing: [get: http://google.com] at URL: /session/1341695 049401/url)
14:05:06.260 INFO - Done: /session/1341695049401/url
14:05:06.301 INFO - Executing: [find element: By.xpath: //*[@id="gbqfqw"]] at UR L: /session/1341695049401/element)
14:05:06.453 INFO - Done: /session/1341695049401/element
14:05:06.495 INFO - Executing: [send keys: 0 org.openqa.selenium.support.events. EventFiringWebDriver$EventFiringWebElement@74d5f412, [StackOverflow]] at URL: /se ssion/1341695049401/element/0/value)
14:05:06.796 INFO - Done: /session/1341695049401/element/0/value
14:05:06.822 INFO - Executing: [find element: By.xpath: //*[@id="gbqfb"]] at URL : /session/1341695049401/element)
14:05:06.935 INFO - Done: /session/1341695049401/element
14:05:06.987 INFO - Executing: [click: 1 org.openqa.selenium.support.events.Even tFiringWebDriver$EventFiringWebElement@7b64218d] at URL: /session/1341695049401/ element/1/click)
14:05:09.627 INFO - Executing: org.openqa.selenium.remote.server.handler.Status@ 6349a3ca at URL: /status) 14:05:09.627 INFO - Done: /status
I tried with By.name(q) and it works.
© Stack Overflow or respective owner