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: []
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.
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)
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.
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)
On 26 Nov 2012, at 06:44, ajay paswan <lists@ruby-forum.com> wrote:
Joel Pearson wrote in post #1086484:
Found this on another forum, does it help?
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..