On Thursday, October 19, 2017 at 9:30:22 AM UTC-5, Justin Ko wrote:
>
> :link and :link_text are Selenium-WebDriver locators. Their support is 
> quite limited in Watir. They are only accepted when using the #element 
> method:
>
> browser.element(link_text: "Services").exists?
> #=> true
>
> browser.element(link: "Services").exists?
> #=> true
>
>
>
Hmm. That makes sense but then it makes my findings even more interesting. 
I've found a site where the locators just don't seem to work no matter 
what, at least when using Watir. It's https://www.vokal.io/.

If you try to use something like browser.link(text: "Services").click, it 
says:

"element located, but timed out after 30, seconds."

If I do the more generic element: browser.element(link_text: 
"Services").click, I get:

"timeout after 30 seconds." (So it just couldn't find it at all.)

The content isn't in an iframe or anything like that. So I don't think this 
is an issue with the context. And, in the first exasmple I showed above, it 
did say "element located" but timed out. It's not clear why it couldn't 
click the element.

 

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to