Hi,
I tried the following piece of code:
require ‘watir’
ie = Watir::IE.new
ie.attach(“www.yahoo.com”)
Getting the following error:
undefined method ‘attach’ for #Watir::IE:0x90edef0 (No Method Error)
I know the goto method and the start method can navigate me to the
desired url but what I want to do is this:
- I want to first check if there is any open browser already existing.
- If it exists, I want to attach a url to it.
- If it does not exist, then I want to create a new instance and
navigate to the desired url using goto.
Can anyone please help me in getting this troubleshooted?
Thanks,
Anukul