See the code again. You tell which button to click "ok" or "cancel" if pop
up comes.
Then you click on the button which generates the pop up. Firewatir will
automatically clicks on "ok" or "cance" button.

Hope this helps.

- Angrez

On Wed, Sep 16, 2009 at 4:42 PM, Ravinder Singroha <
ravindersingr...@gmail.com> wrote:

>
> Hi Angrez
>
> Thanks for this, but my question is as follows:
>
> 1. Scenario: on clicking a button , popup appears which you have to handle.
>
> watir: works with click_no_wait and autoit popup handle
>
> co'z click will hang the action until pop is closed.
>
>
> In Fire Watir, how can this scenario be handled.
>
> Your answers tells me the second part how to handle the popup, how do i
> make it appear without hangin the app with FW is what i am asking.
>
> Or in the scenario how will you handle using Fire Watir.
>
>
> Please help.
>
>
>
> Thanks & regards
> Ravinder Singroha
>
>
>
> On Wed, Sep 16, 2009 at 4:27 PM, Angrez Singh <ang...@gmail.com> wrote:
>
>> Please look at the unit tests. Following are the lines from unit test:
>>
>> browser.startClicker("ok")
>> browser.button(:id, "btnAlert").click
>>
>> First tell the browser which button you want to click "ok" or "cancel" and
>> then click the button.
>>
>>
>>
>> On Wed, Sep 16, 2009 at 4:14 PM, Ravinder Singroha <
>> ravindersingr...@gmail.com> wrote:
>>
>>> Hi Angrez
>>>
>>> I can handle pop with help of autoit
>>> but problem is that if i use click() function then its not releasing.
>>> so that i can not move the next step.
>>>
>>> My scenario is button click then popup came after button click.
>>> Now i can handle this in Firewatir
>>>
>>> Please help me out i am kind of stuck in this
>>>
>>> Thanks & regards
>>> Ravinder Singroha
>>>
>>>
>>>
>>> On Wed, Sep 16, 2009 at 4:01 PM, Angrez Singh <ang...@gmail.com> wrote:
>>>
>>>> did you looked at the unit test cases I think that would be self
>>>> explanatory. Have a look if you still have questions then you can ask here
>>>> on the list.
>>>>
>>>>
>>>> On Wed, Sep 16, 2009 at 3:54 PM, Ravinder Singroha <
>>>> ravindersingr...@gmail.com> wrote:
>>>>
>>>>> Hi Angrez
>>>>>
>>>>> sorry for that....
>>>>>
>>>>> Without click_no_wait() function how can we hadle the popups ?
>>>>>
>>>>> Thx
>>>>>
>>>>>
>>>>>
>>>>> Thanks & regards
>>>>> Ravinder Singroha
>>>>> +91-9717196269
>>>>>
>>>>>
>>>>> On Wed, Sep 16, 2009 at 3:49 PM, Angrez Singh <ang...@gmail.com>wrote:
>>>>>
>>>>>> Firewatir doesn't support click_no_wait(). Also please message to
>>>>>> entire list so that all people can get benefited from the answer.
>>>>>>
>>>>>> Thanks,
>>>>>> Angrez
>>>>>>
>>>>>>
>>>>>> On Wed, Sep 16, 2009 at 3:45 PM, Ravinder Singroha <
>>>>>> ravindersingr...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Angrez
>>>>>>>
>>>>>>> Does Firewatir support click_no_wait() function ?
>>>>>>>
>>>>>>> Thx
>>>>>>>
>>>>>>> Thanks & regards
>>>>>>> Ravinder Singroha
>>>>>>> +91-9717196269
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Sep 16, 2009 at 3:23 PM, Angrez Singh <ang...@gmail.com>wrote:
>>>>>>>
>>>>>>>> For the benefit of other people I am sending this mail to entire
>>>>>>>> mailing list. Unit tests are there in the installation directory ..
>>>>>>>> [ruby installation
>>>>>>>> directory]/lib/ruby/gems/1.8/gems/firewatir-1.6.2/unittests
>>>>>>>>
>>>>>>>> - Angrez
>>>>>>>>
>>>>>>>> On Wed, Sep 16, 2009 at 3:20 PM, Ravinder Singroha <
>>>>>>>> ravindersingr...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Hi Angrez
>>>>>>>>>
>>>>>>>>> Where i can find  unit tests case for Firewatir for handling the
>>>>>>>>> pop
>>>>>>>>> ups? can you give me the links for the same.
>>>>>>>>> and
>>>>>>>>> I am using click_no_wait() function.
>>>>>>>>> But its not working ?
>>>>>>>>> Does FireWatir Support click_no_wait() function
>>>>>>>>>
>>>>>>>>> Thx
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Sep 14, 12:09 pm, Angrez Singh <ang...@gmail.com> wrote:
>>>>>>>>> > Did you had a look at the unit tests case for Firewatir for
>>>>>>>>> handling the pop
>>>>>>>>> > ups? Is there a specific problem that you are facing? The
>>>>>>>>> information you
>>>>>>>>> > provided is not sufficient enough for anyone to help you.
>>>>>>>>> >
>>>>>>>>> > - Angrez
>>>>>>>>> >
>>>>>>>>> > On Mon, Sep 14, 2009 at 10:37 AM, Rajat Singhal <
>>>>>>>>> coolraja...@gmail.com>wrote:
>>>>>>>>> >
>>>>>>>>> >
>>>>>>>>> >
>>>>>>>>> > > Hi All
>>>>>>>>> > > Kindly do let me know,How we can handle pop ups in FireWatir
>>>>>>>>> >
>>>>>>>>> > > Thanks
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to