Does the second link(Port51 Purgatory') appear only after mouseover.?
I had a similar instance and I used fire_event for clicking on the link
after mouseover and it worked for me.. Just give it a try and see if it
works for you.
$browser.link(:text, 'Port51 Purgatory').fire_event "onclick"
On Thursday, 5 December 2013 00:45:44 UTC+5:30, Mihir Dhandhusaria wrote:
>
> I know its a repeated question but couldn't find any promising solution.
>
> Here is my code
>
> $browser.link(:text, 'Products').fire_event('onmouseover')
> $browser.link(:text, 'Port51 Purgatory').click
>
> Error
>
> Cannot click on element (Selenium::WebDriver::Error::ElementNotVisibleError)
>
> same code works on chrome and firefox.
>
> Appreciate your help
>
>
> Thanks
>
> Mihir
>
>
>
--
--
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/groups/opt_out.