Same as the Watir API:

Vapir::Browser.attach(:title, "the title")
or
Vapir::Browser.attach(:title, /part of the title/)
or
Vapir::Browser.attach(:url, /foobar.html/)

If you want to continue using the watir namespace so that you don't have to
modify your existing code extensively, you can do so using the "watir-vapir"
require - see http://wiki.github.com/vapir/vapir/coming-from-watir for more
information.

On Wed, Aug 11, 2010 at 07:50, Amit <amit.e...@gmail.com> wrote:

> Hi Ethan,
>
> Can you please explain how can i integrate Vapir in my Watir framework? I
> just want to use attach method from vapir.
>
> Can you show me sample command for attaching a window in Vapir?
>
> Thank you
>
>
> On Tue, Aug 3, 2010 at 5:13 AM, Ethan <notet...@gmail.com> wrote:
>
>> Vapir should be almost entirely compatible with Watir, so a framework
>> written for Watir should not require much change, if any, to work with
>> Vapir. see
>>
>> http://wiki.github.com/vapir/vapir/coming-from-watir
>>
>> and
>>
>> http://wiki.github.com/vapir/vapir/differences-from-watir-api
>>
>>
>> On Wed, Jul 28, 2010 at 02:06, Amit Kumar <amit.e...@gmail.com> wrote:
>>
>>> Hi Ethan,
>>>
>>> My whole framework has been written in Watir.. So, at this point i can't
>>> use Vapir.
>>>
>>> Guys, is there any other solution to attach multiple browser at a time?
>>>
>>> Thank You
>>>
>>>
>>>
>>>
>>>
>>> On Mon, Jul 26, 2010 at 10:58 PM, Ethan <notet...@gmail.com> wrote:
>>>
>>>> I'd recommend Vapir-Firefox, which is a fork of FireWatir which I have
>>>> updated and improved a lot. See the site for Vapir at http://vapir.org/
>>>>
>>>>
>>>> -Ethan
>>>>
>>>> On Mon, Jul 26, 2010 at 07:07, Amit Kumar <amit.e...@gmail.com> wrote:
>>>>
>>>>>  Hi All!
>>>>>
>>>>> I'm using Firewatir 1.6.5
>>>>> I want to test an web application which open a pop up window.
>>>>> I want to attach this pop up window with firewatir. So, i have written
>>>>> below code:
>>>>>
>>>>> require 'firewatir'
>>>>> ff =FireWatir::Firefox.new
>>>>> ff.goto("www.example.com")
>>>>> ff.link(:text,"Pop_up).click
>>>>> ff2= FireWatir::Firefox.attach(:title,"New Pop Up Window")
>>>>>
>>>>> Now, the problem is... After attaching new pop up window, firewatir
>>>>> loose control over parent window. It remember only pop up window which 
>>>>> have
>>>>> attached recently and forget parent window. So, i can't access parent
>>>>> application anymore.
>>>>>
>>>>> eg: puts ff.title ==> "New Pop Up Window"
>>>>>      puts ff2.title ==> "New Pop Up Window"
>>>>>
>>>>> It doesn't return window title of parent window.
>>>>>
>>>>> Any comments or solution??
>>>>>
>>>>> Thank You
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>  --
>>>>> 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
>>>>> http://groups.google.com/group/watir-general
>>>>> To post: watir-general@googlegroups.com
>>>>> To unsubscribe: 
>>>>> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
>>>>>
>>>>
>>>>  --
>>>> 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
>>>> http://groups.google.com/group/watir-general
>>>> To post: watir-general@googlegroups.com
>>>> To unsubscribe: 
>>>> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
>>>>
>>>
>>>  --
>>> 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
>>> http://groups.google.com/group/watir-general
>>> To post: watir-general@googlegroups.com
>>> To unsubscribe: 
>>> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
>>>
>>
>>  --
>> 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
>> http://groups.google.com/group/watir-general
>> To post: watir-general@googlegroups.com
>> To unsubscribe: 
>> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
>>
>
>  --
> 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
> http://groups.google.com/group/watir-general
> To post: watir-general@googlegroups.com
> To unsubscribe: 
> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
>

-- 
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 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com

Reply via email to