but I am not able to click the same link when I am on ie. I mean I start
browser on irb using watir-webdriver codes.
I am doing something like:
require ‘watir-webdriver’
b = Watir::Browser.start ‘bit.ly/watir-webdriver-demo’
l = b.link :text => ‘Google Docs’
l.exists?
l.click
I can see everything goes fine till 2nd last statement, it shows that
there is the element.
but when I do l.click on irb, nothing happens and I get an output: []
b.links.each {|l| puts l.text}
that will be ok as I am able to flash also to the right link, I see that
first focus and then click works. but the problem is I am using
multithreading, so when it is focused and goes to another window, the
link loses its focus so again its not working actually… any solution?
Have you made sure that Internet Options -> Security has the same
Protected Mode setting (on or off, it doesn’t matter as long as it is
the same value) for all zones? That’s a requirement for the IE driver
functioning correctly.
Have you made sure that Internet Options -> Security has the same
Protected Mode setting (on or off, it doesn’t matter as long as it is
the same value) for all zones? That’s a requirement for the IE driver
functioning correctly.
could you pour some more light over what you said? I didnt get by all
zones.
If there’s a submit button on a form, you can usually get around it by
sending “\n” to the last field in the form, or possibly to the button
itself.
I know that IE has trouble with webdriver, I’m just trying to give you
alternative ways of looking at the problem, rather than only one option
(wait for either Microsoft or the awesome volunteers who write IE’s
interface for Watir to find a solution)
If there’s a submit button on a form, you can usually get around it by
sending “\n” to the last field in the form, or possibly to the button
itself.
I know that IE has trouble with webdriver, I’m just trying to give you
alternative ways of looking at the problem, rather than only one option
(wait for either Microsoft or the awesome volunteers who write IE’s
interface for Watir to find a solution)
Got this fantastic article Home - Watir-Melon
. but there are so many solutions, no solid solution, do you think that
we can get a solid solution compiled from all the solutions mentioned in
article.
If so lets write a solid solution for all. Because I know how much its
frustrating when ur goal is a noometer apart from you but you cannot see
it.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.