[wtr-general] Re: POPUP HANDLING IN WATIR

2012-02-02 Thread Jeff Ducharme
Hi AUQA, Is the problem with the click_no_wait. Is your script executing the click_no_wait before the popup has appeared therefor no "OK" text to click. We decided to implement a wait_until_exists method to address this issue. This example is specificly for ajax element becoming enabled but t

Re: [wtr-general] Re: popup 0.0.6 release,introduce it to you.(a new way to do with popup )

2011-10-28 Thread windy
First question the answer is surely not, I test it for google chrome and firefox popup and other apps, it works fine too. But I can't test all the popup on all the platform, so maybe it would not work right on a special platform. Surely, now it only works on windows OSes ,but I have not fou

[wtr-general] Re: popup 0.0.6 release,introduce it to you.(a new way to do with popup )

2011-10-28 Thread Jarmo Pertman
Good idea. As i understand it handles only IE popups, right? It would be even neater if it worked without using #click_no_wait - e.g. if it would run the code in the block in a separate thread/ process/whatever so you could do something like this too: ATT::AlertPopup.find_when { ie.goto("xxx") }.c

[wtr-general] Re: popup blocker is messing with my scripts

2011-08-12 Thread AMXStephen
Try writing it like this: browser.div(:id => "myIntLink").link(:text => "My Link").click It may work for ya! On Aug 5, 1:34 pm, Anne wrote: > I forgot... > here's the html for the link > > > > My Link > -- Before posting, please read http://watir.com/support. In short: search before you a

[wtr-general] Re: popup blocker is messing with my scripts

2011-08-05 Thread Anne
I forgot... here's the html for the link My Link -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com

[wtr-general] Re: popup problems: how to get back to main browser, Thread join error

2011-01-15 Thread Jarmo Pertman
Doesn't #click_no_wait work for you? b2.div(:id=>'multiplewindow').click_no_wait Jarmo Pertman - IT does really matter - http://www.itreallymatters.net On Jan 14, 12:22 am, LizLeong wrote: > I tried to follow previous posts on this type of popup problem, but I > did not find a solution. >

[wtr-general] Re: Popup window click_no_wait and File download

2010-09-02 Thread Jarmo Pertman
Have you attached to the popup window? popup = Watir::IE.attach :title, /something/ What happens if you execute #close on it? popup.close Do you see any error messages or anything at all? Jarmo On Aug 31, 1:43 pm, Jeff Bender wrote: > Hallo all, > > i am new at watir and have got probably a

[wtr-general] Re: PopUp

2010-08-29 Thread Darryl Brown
sivam, As Željko stated, it is best to show your code and the error(s) you're getting in order to get some help. Below is an example of in it's simplest form: # ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] # watir 1.6.2 require 'watir/ie' require 'win32ole' require 'watir\contrib\en

Re: [wtr-general] Re: PopUp

2010-08-26 Thread Željko Filipin
On Thu, Aug 26, 2010 at 12:45 PM, sivam wrote: > Give me some code samples to solve this problem. I have never worked with pop ups. > I have tried most of > the things. But nothing is working fine for me. "Not working" does not tell my anything. You will have to provide your code and error mess

[wtr-general] Re: PopUp

2010-08-26 Thread sivam
Give me some code samples to solve this problem. I have tried most of the things. But nothing is working fine for me. -- 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.

Re: [wtr-general] Re: popup handling

2010-01-28 Thread Wesley Chen
How do you invoke the method? Wesley. For life, the easier, the better. On Fri, Jan 29, 2010 at 1:51 AM, naveen kumar wrote: > Hi , > > Thanks for your reply, > when i tried pop op clicker method it throws error saying nomethod found > error > how can i rectify this.Please help me in this regar

Re: [wtr-general] Re: popup handling

2010-01-28 Thread naveen kumar
Hi , Thanks for your reply, when i tried pop op clicker method it throws error saying nomethod found error how can i rectify this.Please help me in this regard Thanks, Naveen On Fri, Jan 22, 2010 at 6:32 AM, Wesley Chen wrote: > If the methods above can't work, you can try the one below. > # W

Re: [wtr-general] Re: popup handling

2010-01-21 Thread Wesley Chen
If the methods above can't work, you can try the one below. # When it displays the "OKCancel" or "OK" pop up, it will click it def popup_clicker(ie = $ie, buttonname= "OK") require 'watir/contrib/enabled_popup' hwnd = ie.enabled_popup(15) if(hwnd) #yeah! a popup

[wtr-general] Re: popup handling

2010-01-21 Thread orde
I think you need to use click_no_wait on this line: ie.button(:value, 'Click').click Also, lots of info here: http://wiki.openqa.org/display/WTR/Pop+Ups Hope it helps... orde On Jan 21, 9:28 am, Naveen devadass wrote: > Hi All, > >  I am using following script to handle the pop up > > but th

[wtr-general] Re: Popup for File downlaods

2009-04-09 Thread Chuck van der Linden
You now have at least FOUR threads going for the same issue, it's just causing confusion. Please STOP spawning new threads for the same issue. On Apr 7, 8:39 pm, spike wrote: > Hi > > I'm really confused working with Pop Up's i'm not able to find any > solution for it wat ever script i'm trying

[wtr-general] Re: Popup for File downlaods

2009-04-09 Thread Chuck van der Linden
I many cases, the most important thing to understand when dealing with popups is to know what KIND of popup you are seeing. The tutorial for Watir covers most of the common kinds of popups, and gives some suggestions of potential ways to deal with each of them. Even if you've been through it onc

[wtr-general] Re: Popup for File downlaods

2009-04-09 Thread ANu Gangavaram
I was running into similar problem. I seperated the scripts - main script and save script. I call the save script from the main script using a system call and send the filename as an argument and it works. You can also have it in the same file, but seperate the code and instantiate each differen

[wtr-general] Re: popup handling

2009-03-04 Thread bwaybandit
k never mind the browser. require 'watir/contrib/enabled_popup' that statement needs to move into your class where you are doing your popup stuff. those global requires kill ya. On Mar 3, 6:45 am, Vikas Tulashyam wrote: > Hi friends, > I am getting an error while handling the popup. I have att

[wtr-general] Re: popup handling

2009-03-04 Thread bwaybandit
what browser are you using? On Mar 3, 6:45 am, Vikas Tulashyam wrote: > Hi friends, > I am getting an error while handling the popup. I have attached the > code and following is the error message�� > > :/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/ > enabled_popup.rb:5: uninitializ

[wtr-general] Re: Popup clicknowait question

2009-02-24 Thread Bill Agee
be how you used it. I tried creating a helper script, > and I called it just before I click the button that causes the popup. Still > nothing. Please, save me from this!!! > > - Shelton > > > Date: Thu, 19 Feb 2009 10:55:50 -0800 > > Subject: [wtr-general] Re: Popup clicknowai

[wtr-general] Re: popup

2009-02-20 Thread pink hiii
glegroups.com Sent: Friday, 20 February, 2009 2:05:34 PM Subject: [wtr-general] Re: popup try this: require 'watir/ie' require 'watir/contrib/enabled_popup' On Mon, Feb 16, 2009 at 10:36 PM, jam wrote: hallo, I could't require enabled_popup (require 'watir/contrib/

[wtr-general] Re: popup

2009-02-20 Thread Wilson Xu
try this: require 'watir/ie' require 'watir/contrib/enabled_popup' On Mon, Feb 16, 2009 at 10:36 PM, jam wrote: > > hallo, > > I could't require enabled_popup (require 'watir/contrib/ > enabled_popup') > > I am getting an error message > < > d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/c

[wtr-general] Re: Popup clicknowait question

2009-02-19 Thread Jason Shelton
Date: Thu, 19 Feb 2009 10:55:50 -0800 > Subject: [wtr-general] Re: Popup clicknowait question > From: billa...@gmail.com > To: watir-general@googlegroups.com > > > Is there another way you can access the button than "button(:text, > "More")"? It might b

[wtr-general] Re: Popup clicknowait question

2009-02-19 Thread Bill Agee
t; > $ie.enabled_popup(10) > > if > > (hwnd) > > popup = WinClicker.new > > popup.makeWindowActive(hwnd) > > popup.clickWindowsButton(hwnd, > > "OK", "30") end > > Here is the code for the button: > > More > > Thanks. > &g

[wtr-general] Re: Popup clicknowait question

2009-02-19 Thread Jason Shelton
bled_popup(10) if(hwnd) popup = WinClicker.new popup.makeWindowActive(hwnd) popup.clickWindowsButton(hwnd, "OK", "30") end Here is the code for the button: More Thanks. -Shelton Subject: [wtr-general] Re: Popup clicknowait question Date: Thu, 19 Feb 2009 0

[wtr-general] Re: Popup clicknowait question

2009-02-19 Thread Darin Duphorn
From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Jason Shelton Sent: Thursday, February 19, 2009 8:56 AM To: watir-general@googlegroups.com Subject: [wtr-general] Re: Popup clicknowait question Hello, My problem is

[wtr-general] Re: Popup clicknowait question

2009-02-19 Thread Jason Shelton
. - Shelton Subject: [wtr-general] Re: Popup clicknowait question Date: Wed, 18 Feb 2009 16:15:15 -0600 From: dduph...@redbrickhealth.com To: watir-general@googlegroups.com Do you have the following? require 'watir/dialog' require 'watir/winClicker' require 'wa

[wtr-general] Re: Popup clicknowait question

2009-02-19 Thread pink hiii
  Hi Shelton,   For this situation, just increase the wait time value to 10 waitTime=10 hwnd = ie.enabled_popup(waitTime)   This will resolve your issue. And make sure that, Autoit.dll is registered with your operating system or not.   Regards Siva. --- On Wed, 18/2/09, Jason Shelton wrote: F

[wtr-general] Re: Popup clicknowait question

2009-02-18 Thread Darin Duphorn
#Click button on the popup popup.clickWindowsButton_hwnd(hwnd, "#{OK}" ) From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Jason Shelton Sent: Wednesday, February 18, 2009 4:05 PM To: watir-general@googlegro

[wtr-general] Re: Popup clicknowait question

2009-02-18 Thread Jason Shelton
All, I have tried all of the proposed methods on the Watir OpenQa site, but for some reason click_no_wait is not accessing the specified button. When I try it, whatever popup scheme I am using just times out. What is wrong with my code!!! Below is a snippet of my last attempt. Any new

[wtr-general] Re: Popup clicknowait question

2009-02-17 Thread Darin Duphorn
Below is what I use. I don't have any issues. #--- #Handles Po