[wtr-general] Re: Script hangs while trying to close pop up

2009-08-25 Thread tcfodor

Hi Namit,

You may have already looked here, but the bulk of the knowledge on
Watir and popups can be found here:

http://wiki.openqa.org/display/WTR/Pop+Ups

Off the top of my head, it seems like there were cases where we needed
to use click_no_wait instead of just click to avoid hanging.

Hope this helps!

-Tiffany

On Aug 25, 7:05 am, Namit  wrote:
> Hi All,
>
> My scenario is to click a image that results in a pop up. I want to
> click OK button of this Pop up. This is a straight scenario without
> much complexity still the script is not working and the pop up remains
> as it is.
>
> Here is my sample script
>    require 'watir'
>    require 'win32ole'
>    require 'watir/ie'
>    require 'watir\contrib\enabled_popup'
>
> $ie = Watir::IE.new
> $ie.goto 'some url/'
> $ie.button(:src, 'http://img1.yatra.com/yatra_blue-theme/images/common/
> spacer.gif').click
> sleep 10
>    if $ie.enabled_popup
>   puts 'inside if loop'
> hwnd =$ie.enabled_popup(10)
> puts hwnd
> w = WinClicker.new
> w.makeWindowActive(hwnd)
> w.clickWindowsButton_hwnd(hwnd,"OK")
> end
>
> This script after clicking the image hangs and after this there is no
> action performed. The pop is a simple pop up with an OK button.
>
> Guys please tell me where I am going wrong. Any help will be highly
> appreciated
>
> Thanks
> Namit
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Re: Script hangs while trying to close pop up

2009-08-25 Thread Namit

Thanks a lot Tiffany for your reply, I tried other things too  too
like dialog.button('Cancel').click , click_no_wait and I tried Auto it
etc but of no use. I am working on in further, will get back to you if
I find something useful.
By the way do you think that the script that I have posted above is
incorrect or I need to modify it.

Thanks
Namit


On Aug 25, 8:30 pm, tcfodor  wrote:
> Hi Namit,
>
> You may have already looked here, but the bulk of the knowledge on
> Watir and popups can be found here:
>
> http://wiki.openqa.org/display/WTR/Pop+Ups
>
> Off the top of my head, it seems like there were cases where we needed
> to use click_no_wait instead of just click to avoid hanging.
>
> Hope this helps!
>
> -Tiffany
>
> On Aug 25, 7:05 am, Namit  wrote:
>
> > Hi All,
>
> > My scenario is to click a image that results in a pop up. I want to
> > click OK button of this Pop up. This is a straight scenario without
> > much complexity still the script is not working and the pop up remains
> > as it is.
>
> > Here is my sample script
> >    require 'watir'
> >    require 'win32ole'
> >    require 'watir/ie'
> >    require 'watir\contrib\enabled_popup'
>
> > $ie = Watir::IE.new
> > $ie.goto 'some url/'
> > $ie.button(:src, 'http://img1.yatra.com/yatra_blue-theme/images/common/
> > spacer.gif').click
> > sleep 10
> >    if $ie.enabled_popup
> >   puts 'inside if loop'
> > hwnd =$ie.enabled_popup(10)
> > puts hwnd
> > w = WinClicker.new
> > w.makeWindowActive(hwnd)
> > w.clickWindowsButton_hwnd(hwnd,"OK")
> > end
>
> > This script after clicking the image hangs and after this there is no
> > action performed. The pop is a simple pop up with an OK button.
>
> > Guys please tell me where I am going wrong. Any help will be highly
> > appreciated
>
> > Thanks
> > Namit
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Re: Script hangs while trying to close pop up

2009-08-25 Thread Rohan Ojha

I have found that one important thing that people miss out on is that Ruby
1.8.6.27 doesn’t support click_no_wait.

So I hope you are not using this version of Ruby. If yes then try with 
Ruby 1.8.6.26

Also always use sleep after click_no_wait and the pop-up handler method

Thanks, 
Rohan Ojha 

-Original Message-
From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com]
On Behalf Of Namit
Sent: Wednesday, August 26, 2009 11:35 AM
To: Watir General
Subject: [wtr-general] Re: Script hangs while trying to close pop up


Thanks a lot Tiffany for your reply, I tried other things too  too
like dialog.button('Cancel').click , click_no_wait and I tried Auto it
etc but of no use. I am working on in further, will get back to you if
I find something useful.
By the way do you think that the script that I have posted above is
incorrect or I need to modify it.

Thanks
Namit


On Aug 25, 8:30 pm, tcfodor  wrote:
> Hi Namit,
>
> You may have already looked here, but the bulk of the knowledge on
> Watir and popups can be found here:
>
> http://wiki.openqa.org/display/WTR/Pop+Ups
>
> Off the top of my head, it seems like there were cases where we needed
> to use click_no_wait instead of just click to avoid hanging.
>
> Hope this helps!
>
> -Tiffany
>
> On Aug 25, 7:05 am, Namit  wrote:
>
> > Hi All,
>
> > My scenario is to click a image that results in a pop up. I want to
> > click OK button of this Pop up. This is a straight scenario without
> > much complexity still the script is not working and the pop up remains
> > as it is.
>
> > Here is my sample script
> >    require 'watir'
> >    require 'win32ole'
> >    require 'watir/ie'
> >    require 'watir\contrib\enabled_popup'
>
> > $ie = Watir::IE.new
> > $ie.goto 'some url/'
> > $ie.button(:src, 'http://img1.yatra.com/yatra_blue-theme/images/common/
> > spacer.gif').click
> > sleep 10
> >    if $ie.enabled_popup
> >   puts 'inside if loop'
> > hwnd =$ie.enabled_popup(10)
> > puts hwnd
> > w = WinClicker.new
> > w.makeWindowActive(hwnd)
> > w.clickWindowsButton_hwnd(hwnd,"OK")
> > end
>
> > This script after clicking the image hangs and after this there is no
> > action performed. The pop is a simple pop up with an OK button.
>
> > Guys please tell me where I am going wrong. Any help will be highly
> > appreciated
>
> > Thanks
> > Namit


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Re: Script hangs while trying to close pop up

2009-08-26 Thread Namit

Hi Rohan

Thanks for your reply

I am using 1.8.6.26 version and also I used sleep after this command
but in vain.

I am working on it further, will reply with my observations

Thanks
Namit

On Aug 26, 11:37 am, "Rohan Ojha"  wrote:
> I have found that one important thing that people miss out on is that Ruby
> 1.8.6.27 doesn’t support click_no_wait.
>
> So I hope you are not using this version of Ruby. If yes then try with
> Ruby 1.8.6.26
>
> Also always use sleep after click_no_wait and the pop-up handler method
>
> Thanks,
> Rohan Ojha
>
> -Original Message-
> From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com]
>
> On Behalf Of Namit
> Sent: Wednesday, August 26, 2009 11:35 AM
> To: Watir General
> Subject: [wtr-general] Re: Script hangs while trying to close pop up
>
> Thanks a lot Tiffany for your reply, I tried other things too  too
> like dialog.button('Cancel').click , click_no_wait and I tried Auto it
> etc but of no use. I am working on in further, will get back to you if
> I find something useful.
> By the way do you think that the script that I have posted above is
> incorrect or I need to modify it.
>
> Thanks
> Namit
>
> On Aug 25, 8:30 pm, tcfodor  wrote:
> > Hi Namit,
>
> > You may have already looked here, but the bulk of the knowledge on
> > Watir and popups can be found here:
>
> >http://wiki.openqa.org/display/WTR/Pop+Ups
>
> > Off the top of my head, it seems like there were cases where we needed
> > to use click_no_wait instead of just click to avoid hanging.
>
> > Hope this helps!
>
> > -Tiffany
>
> > On Aug 25, 7:05 am, Namit  wrote:
>
> > > Hi All,
>
> > > My scenario is to click a image that results in a pop up. I want to
> > > click OK button of this Pop up. This is a straight scenario without
> > > much complexity still the script is not working and the pop up remains
> > > as it is.
>
> > > Here is my sample script
> > >    require 'watir'
> > >    require 'win32ole'
> > >    require 'watir/ie'
> > >    require 'watir\contrib\enabled_popup'
>
> > > $ie = Watir::IE.new
> > > $ie.goto 'some url/'
> > > $ie.button(:src, 'http://img1.yatra.com/yatra_blue-theme/images/common/
> > > spacer.gif').click
> > > sleep 10
> > >    if $ie.enabled_popup
> > >   puts 'inside if loop'
> > > hwnd =$ie.enabled_popup(10)
> > > puts hwnd
> > > w = WinClicker.new
> > > w.makeWindowActive(hwnd)
> > > w.clickWindowsButton_hwnd(hwnd,"OK")
> > > end
>
> > > This script after clicking the image hangs and after this there is no
> > > action performed. The pop is a simple pop up with an OK button.
>
> > > Guys please tell me where I am going wrong. Any help will be highly
> > > appreciated
>
> > > Thanks
> > > Namit
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Re: Script hangs while trying to close pop up

2009-08-26 Thread Darryl (gem dandy) Brown

Hello Namit,

Please see the google example in my response to the following post -

"will watir-1.6.2 support pop-up message"
http://groups.google.com/group/watir-general/browse_thread/thread/eeb37d3a8562936/e9ec1258c2aa547f?hl=en&q=#e9ec1258c2aa547f


You must use click_no_wait

Good luck,
Darryl


On Aug 26, 3:05 am, Namit  wrote:
> Hi Rohan
>
> Thanks for your reply
>
> I am using 1.8.6.26 version and also I used sleep after this command
> but in vain.
>
> I am working on it further, will reply with my observations
>
> Thanks
> Namit
>
> On Aug 26, 11:37 am, "Rohan Ojha"  wrote:
>
> > I have found that one important thing that people miss out on is that Ruby
> > 1.8.6.27 doesn’t support click_no_wait.
>
> > So I hope you are not using this version of Ruby. If yes then try with
> > Ruby 1.8.6.26
>
> > Also always use sleep after click_no_wait and the pop-up handler method
>
> > Thanks,
> > Rohan Ojha
>
> > -Original Message-
> > From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com]
>
> > On Behalf Of Namit
> > Sent: Wednesday, August 26, 2009 11:35 AM
> > To: Watir General
> > Subject: [wtr-general] Re: Script hangs while trying to close pop up
>
> > Thanks a lot Tiffany for your reply, I tried other things too  too
> > like dialog.button('Cancel').click , click_no_wait and I tried Auto it
> > etc but of no use. I am working on in further, will get back to you if
> > I find something useful.
> > By the way do you think that the script that I have posted above is
> > incorrect or I need to modify it.
>
> > Thanks
> > Namit
>
> > On Aug 25, 8:30 pm, tcfodor  wrote:
> > > Hi Namit,
>
> > > You may have already looked here, but the bulk of the knowledge on
> > > Watir and popups can be found here:
>
> > >http://wiki.openqa.org/display/WTR/Pop+Ups
>
> > > Off the top of my head, it seems like there were cases where we needed
> > > to use click_no_wait instead of just click to avoid hanging.
>
> > > Hope this helps!
>
> > > -Tiffany
>
> > > On Aug 25, 7:05 am, Namit  wrote:
>
> > > > Hi All,
>
> > > > My scenario is to click a image that results in a pop up. I want to
> > > > click OK button of this Pop up. This is a straight scenario without
> > > > much complexity still the script is not working and the pop up remains
> > > > as it is.
>
> > > > Here is my sample script
> > > >    require 'watir'
> > > >    require 'win32ole'
> > > >    require 'watir/ie'
> > > >    require 'watir\contrib\enabled_popup'
>
> > > > $ie = Watir::IE.new
> > > > $ie.goto 'some url/'
> > > > $ie.button(:src, 'http://img1.yatra.com/yatra_blue-theme/images/common/
> > > > spacer.gif').click
> > > > sleep 10
> > > >    if $ie.enabled_popup
> > > >   puts 'inside if loop'
> > > > hwnd =$ie.enabled_popup(10)
> > > > puts hwnd
> > > > w = WinClicker.new
> > > > w.makeWindowActive(hwnd)
> > > > w.clickWindowsButton_hwnd(hwnd,"OK")
> > > > end
>
> > > > This script after clicking the image hangs and after this there is no
> > > > action performed. The pop is a simple pop up with an OK button.
>
> > > > Guys please tell me where I am going wrong. Any help will be highly
> > > > appreciated
>
> > > > Thanks
> > > > Namit
>
>
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Re: Script hangs while trying to close pop up

2009-08-27 Thread Namit

Hi Daryl

I tried the above steps but stuck into the same problem, may be my
machine issue , I will try to run the same script on some other
machine may be this can be of some help. I will keep you guys posted

Thanks a lot
Namit

On Aug 27, 6:53 am, "Darryl (gem dandy) Brown"  wrote:
> Hello Namit,
>
> Please see the google example in my response to the following post -
>
> "will watir-1.6.2 support pop-up 
> message"http://groups.google.com/group/watir-general/browse_thread/thread/eeb...
>
> You must use click_no_wait
>
> Good luck,
> Darryl
>
> On Aug 26, 3:05 am, Namit  wrote:
>
> > Hi Rohan
>
> > Thanks for your reply
>
> > I am using 1.8.6.26 version and also I used sleep after this command
> > but in vain.
>
> > I am working on it further, will reply with my observations
>
> > Thanks
> > Namit
>
> > On Aug 26, 11:37 am, "Rohan Ojha"  wrote:
>
> > > I have found that one important thing that people miss out on is that Ruby
> > > 1.8.6.27 doesn’t support click_no_wait.
>
> > > So I hope you are not using this version of Ruby. If yes then try with
> > > Ruby 1.8.6.26
>
> > > Also always use sleep after click_no_wait and the pop-up handler method
>
> > > Thanks,
> > > Rohan Ojha
>
> > > -Original Message-----
> > > From: watir-general@googlegroups.com 
> > > [mailto:watir-gene...@googlegroups.com]
>
> > > On Behalf Of Namit
> > > Sent: Wednesday, August 26, 2009 11:35 AM
> > > To: Watir General
> > > Subject: [wtr-general] Re: Script hangs while trying to close pop up
>
> > > Thanks a lot Tiffany for your reply, I tried other things too  too
> > > like dialog.button('Cancel').click , click_no_wait and I tried Auto it
> > > etc but of no use. I am working on in further, will get back to you if
> > > I find something useful.
> > > By the way do you think that the script that I have posted above is
> > > incorrect or I need to modify it.
>
> > > Thanks
> > > Namit
>
> > > On Aug 25, 8:30 pm, tcfodor  wrote:
> > > > Hi Namit,
>
> > > > You may have already looked here, but the bulk of the knowledge on
> > > > Watir and popups can be found here:
>
> > > >http://wiki.openqa.org/display/WTR/Pop+Ups
>
> > > > Off the top of my head, it seems like there were cases where we needed
> > > > to use click_no_wait instead of just click to avoid hanging.
>
> > > > Hope this helps!
>
> > > > -Tiffany
>
> > > > On Aug 25, 7:05 am, Namit  wrote:
>
> > > > > Hi All,
>
> > > > > My scenario is to click a image that results in a pop up. I want to
> > > > > click OK button of this Pop up. This is a straight scenario without
> > > > > much complexity still the script is not working and the pop up remains
> > > > > as it is.
>
> > > > > Here is my sample script
> > > > >    require 'watir'
> > > > >    require 'win32ole'
> > > > >    require 'watir/ie'
> > > > >    require 'watir\contrib\enabled_popup'
>
> > > > > $ie = Watir::IE.new
> > > > > $ie.goto 'some url/'
> > > > > $ie.button(:src, 
> > > > > 'http://img1.yatra.com/yatra_blue-theme/images/common/
> > > > > spacer.gif').click
> > > > > sleep 10
> > > > >    if $ie.enabled_popup
> > > > >   puts 'inside if loop'
> > > > > hwnd =$ie.enabled_popup(10)
> > > > > puts hwnd
> > > > > w = WinClicker.new
> > > > > w.makeWindowActive(hwnd)
> > > > > w.clickWindowsButton_hwnd(hwnd,"OK")
> > > > > end
>
> > > > > This script after clicking the image hangs and after this there is no
> > > > > action performed. The pop is a simple pop up with an OK button.
>
> > > > > Guys please tell me where I am going wrong. Any help will be highly
> > > > > appreciated
>
> > > > > Thanks
> > > > > Namit
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Re: Script hangs while trying to close pop up

2009-09-03 Thread Darryl Brown

Hi Namit,

Post a copy of the script that you are trying for the Google example.


Regards,
Darryl

On Aug 28, 12:51 am, Namit  wrote:
> Hi Daryl
>
> I tried the above steps but stuck into the same problem, may be my
> machine issue , I will try to run the same script on some other
> machine may be this can be of some help. I will keep you guys posted
>
> Thanks a lot
> Namit
>
> On Aug 27, 6:53 am, "Darryl (gem dandy) Brown" 
> br...@roadrunner.com> wrote:
> > Hello Namit,
>
> > Please see the google example in my response to the following post -
>
> > "will watir-1.6.2 support pop-up 
> > message"http://groups.google.com/group/watir-general/browse_thread/thread/eeb...
>
> > You must use click_no_wait
>
> > Good luck,
> > Darryl
>
> > On Aug 26, 3:05 am, Namit  wrote:
>
> > > Hi Rohan
>
> > > Thanks for your reply
>
> > > I am using 1.8.6.26 version and also I used sleep after this command
> > > but in vain.
>
> > > I am working on it further, will reply with my observations
>
> > > Thanks
> > > Namit
>
> > > On Aug 26, 11:37 am, "Rohan Ojha"  wrote:
>
> > > > I have found that one important thing that people miss out on is that 
> > > > Ruby
> > > > 1.8.6.27 doesn’t support click_no_wait.
>
> > > > So I hope you are not using this version of Ruby. If yes then try with
> > > > Ruby 1.8.6.26
>
> > > > Also always use sleep after click_no_wait and the pop-up handler method
>
> > > > Thanks,
> > > > Rohan Ojha
>
> > > > -Original Message-
> > > > From: watir-general@googlegroups.com 
> > > > [mailto:watir-gene...@googlegroups.com]
>
> > > > On Behalf Of Namit
> > > > Sent: Wednesday, August 26, 2009 11:35 AM
> > > > To: Watir General
> > > > Subject: [wtr-general] Re: Script hangs while trying to close pop up
>
> > > > Thanks a lot Tiffany for your reply, I tried other things too  too
> > > > like dialog.button('Cancel').click , click_no_wait and I tried Auto it
> > > > etc but of no use. I am working on in further, will get back to you if
> > > > I find something useful.
> > > > By the way do you think that the script that I have posted above is
> > > > incorrect or I need to modify it.
>
> > > > Thanks
> > > > Namit
>
> > > > On Aug 25, 8:30 pm, tcfodor  wrote:
> > > > > Hi Namit,
>
> > > > > You may have already looked here, but the bulk of the knowledge on
> > > > > Watir and popups can be found here:
>
> > > > >http://wiki.openqa.org/display/WTR/Pop+Ups
>
> > > > > Off the top of my head, it seems like there were cases where we needed
> > > > > to use click_no_wait instead of just click to avoid hanging.
>
> > > > > Hope this helps!
>
> > > > > -Tiffany
>
> > > > > On Aug 25, 7:05 am, Namit  wrote:
>
> > > > > > Hi All,
>
> > > > > > My scenario is to click a image that results in a pop up. I want to
> > > > > > click OK button of this Pop up. This is a straight scenario without
> > > > > > much complexity still the script is not working and the pop up 
> > > > > > remains
> > > > > > as it is.
>
> > > > > > Here is my sample script
> > > > > >    require 'watir'
> > > > > >    require 'win32ole'
> > > > > >    require 'watir/ie'
> > > > > >    require 'watir\contrib\enabled_popup'
>
> > > > > > $ie = Watir::IE.new
> > > > > > $ie.goto 'some url/'
> > > > > > $ie.button(:src, 
> > > > > > 'http://img1.yatra.com/yatra_blue-theme/images/common/
> > > > > > spacer.gif').click
> > > > > > sleep 10
> > > > > >    if $ie.enabled_popup
> > > > > >   puts 'inside if loop'
> > > > > > hwnd =$ie.enabled_popup(10)
> > > > > > puts hwnd
> > > > > > w = WinClicker.new
> > > > > > w.makeWindowActive(hwnd)
> > > > > > w.clickWindowsButton_hwnd(hwnd,"OK")
> > > > > > end
>
> > > > > > This script after clicking the image hangs and after this there is 
> > > > > > no
> > > > > > action performed. The pop is a simple pop up with an OK button.
>
> > > > > > Guys please tell me where I am going wrong. Any help will be highly
> > > > > > appreciated
>
> > > > > > Thanks
> > > > > > Namit
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---