Hi Vikash,
As of now you can't do that in Firewatir. You can only attach to windows
using an instance of Firefox. This is by design as we have to maintain all
the browser instances that are currently opened and close them accordingly.
Will try to come up with a solution which works like Watir but as of now you
can't do that.
Regards,
Angrez
On 4/19/07, VIKASH KUMAR <[EMAIL PROTECTED]> wrote:
Hi Angrez,
My requirement is to just attach the script to some already open browser
as we can attach to some already open page in watir viz. ie = Watir::
IE.attach(:title,"Google"), I have open that browser manually.
Thanks & Regards,
Vikash
>Hi Vikash,
>Can you please clarify what you want to do? What I think is, there is a
>browser and you want to attach to it? Correct?
>But how you open that browser is my question?
>Regards,
>Angrez
>> I am trying to attach to a browser using title, If I am using watir, I
can
>> just attach to a browser using:
>> require 'watir'
>> ie = Watir::IE.attach(:title,"Google")
>> But, In case of firewatir, I am facing problem, i.e. when I use :
>> require 'firewatir'
>> ff = FireWatir::Firefox.attach(:title,"Google")
>> I am getting the below error message:
>> NoMethodError: undefined method `attach' for FireWatir::Firefox:Class
>> But, with some changes with the code I can attach to some another
browser:
>> require 'firewatir'
>> ff = FireWatir::Firefox.start("www.yahoo.com";)
>> ff_new = ff.attach(:title,"Google")
>> But, I don't want to open a browser, my requirement is to just attach
to
>> the existing browser, is there is some way of doing this, as we can do
with
>> "watir".
>> Please, help me out.
>> Thanks in advance
>> Vikash
------------------------------
Check out what you're missing if you're not on Yahoo!
Messenger<http://us.rd.yahoo.com/mail/in/ymessenger/*http://in.messenger.yahoo.com/>
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general