Hi All,
To add my question to this thread. i have a scenario when in I have
initialized first IE say ie1 where in i have declared a variable SignIn
for say SignIn button and When I click on some link it opens a new window
and I want to work on that window for which I will use ie2 =
2010/6/30 kiran yajamanyam kiranyajaman...@gmail.com
signin = ie1.button(:text, SignIn)
You could do something like this:
def signin(browser)
browser.button(:text, SignIn)
end
signin(ie1).click
signin(ie2).click
Željko
--
watir.com - community manager
watirpodcast.com - host
Great solution :). Thank you very much :)
On Wed, Jun 30, 2010 at 6:50 PM, Željko Filipin
zeljko.fili...@wa-research.ch wrote:
2010/6/30 kiran yajamanyam kiranyajaman...@gmail.com
signin = ie1.button(:text, SignIn)
You could do something like this:
def signin(browser)
On Wed, Jun 30, 2010 at 3:27 PM, kiran yajamanyam kiranyajaman...@gmail.com
wrote:
Great solution
The power of ruby :)
Željko
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
You received this message because you are subscribed to
On Thu, Jun 17, 2010 at 11:10 PM, Cristina cristina.toro...@gmail.com
wrote:
The question is how can I close the second browser and return to the main
one to continue checking the other links?
browser1.link(how, what).click
browser2 = Watir::Browser.attach(how, what)
# do something with browser2
Have you tried the attach command for the first windows url?
Browser.attach(:url, http://yourfirsturl;)
On Jun 17, 2010 2:10 PM, Cristina cristina.toro...@gmail.com wrote:
I have the following scenario and I am not sure if that can be automated.
1. On a page a have a bunch of links and I have