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

2009-08-26 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

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

2009-08-26 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

[wtr-general] Is there a method to handling modal dialog but not providing the title?

2009-08-26 Thread Wesley Chen
Hi, guys, I mean that sometimes, we know there is a modal dialog but we won't to know the title. For following, we must provide a title. But I don't want to provide it sometimes. = autoit=WIN32OLE.new('AutoItX3.Control') #ret=autoit.WinWait(title,,180)

[wtr-general] Re: Watir fire_event that opens a modal dialog no wait needed

2009-08-26 Thread Tony
Hi Adrian, The above code works fine for me ... by changing img.fire_event_no_wait(mousedown) to img.fire_event_no_wait (onmousedown) Maybe you could post the whole code that you are using ... so we could take a look at what you are exactly trying to do...?? Not sure on the threads -- I

[wtr-general] Re: Is there a method to handling modal dialog but not providing the title?

2009-08-26 Thread Namit
Hi, If you do not want to use title of the pop up then you can use the hwnd command to close the pop up by just passing the caption of button. Visit this URl for some sample examples. http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups Thanks Namit On Aug 26, 11:42 am, Wesley Chen

[wtr-general] Re: Is there a method to handling modal dialog but not providing the title?

2009-08-26 Thread Wesley Chen
Hi, Namit, Your suggestion maybe good. I know some kinds of solution. But if I use autoit, there is no title, how can I make it? autoit=WIN32OLE.new('AutoItX3.Control') ret=autoit.WinWait(*title*,,60) Thanks. Wesley Chen. On Wed, Aug 26, 2009 at 3:08 PM, Namit namitjai...@gmail.com wrote:

[wtr-general] Re: Is there a method to handling modal dialog but not providing the title?

2009-08-26 Thread Tony
Hi Wesley, There is a different technique to handling popups without autoit - This will act only on the current ie window which watir is using not any other browser. The below will handle alert, confirm , prompt, auth dialog box. Usage: require 'watir' iewin = Watir::IE.new

[wtr-general] Safariwatir attach?

2009-08-26 Thread ]{N
Hi all Does anyone know if there's a safariwatir equivalent of the attach method for IE? If not, is there a workaround? I need to be able to switch focus to pop-up html windows and continue testing within these, and if I can't, safariwatir is pretty much useless for what I need to do! Thanks

[wtr-general] Re: Is there a method to handling modal dialog but not providing the title?

2009-08-26 Thread Wesley Chen
Hi, Tony, Thank you very much for the quick reply. :), 1) I can't find the *below code*; 2)will iewin.clickprompt( ) click the button on the pop up? If it does, if on the pop up, there are two buttons such as OK/Cancel, how to identify them? Thanks. Wesley Chen. On Wed, Aug 26, 2009 at 3:43

[wtr-general] Re: Is there a method to handling modal dialog but not providing the title?

2009-08-26 Thread Tony
Hi Wesley, iewin.clickprompt() will click the button in the popup and return the popup text. This is the definition - def clickprompt(but=OK,txt =, waitTime = 10) iewin.clickprompt(CANCEL) # will click cancel button.. actually if you pass in anything other than OK, cancel will be clicked.

[wtr-general] Re: Watir fire_event that opens a modal dialog no wait needed

2009-08-26 Thread Adrian Ghidu
Hi Tony, Thanks for trying to help me out. Here is the ruby script. The app is a servlet. Onmouseover works just fine, also fire_event(onmousedown) works, but this opens a modal dialog and the program is stuck on the fire_event line. require 'rubygems' require 'watir' class RunProg def Run()

[wtr-general] A real newbie question

2009-08-26 Thread Matt
Hi all, Sorry to annoy you with such a basic question, no doubt, but I am really struggling on the basics... I am using firefox instead of ie and am not too sure on some of my ruby code. I have hacked it here and there and now I am not too sure what I am doing wrong. I am using SciTE editor

[wtr-general] Re: A real newbie question

2009-08-26 Thread Željko Filipin
On Wed, Aug 26, 2009 at 1:37 PM, Matt matt.walt...@three.com.au wrote: Test_site=http://www.google.com test26aug.rb:2: undefined local variable or method `www' for main:Object (NameError) You have forgot quotes: Test_site=http://www.google.com; Željko -- http://watirpodcast.com/

[wtr-general] Not able to enter login credentials in Sign In section

2009-08-26 Thread Maumita
Hi, This is a test site https://sandbox.google.com/checkout/view/buy? o=shoppingcartshoppingcart=322449560105091pli=1tzfp=wg-14ArD In this I am not able to enter login credentails in the Sign In section. -- require 'watir' require 'test/unit' require 'win32ole' $ie = Watir::IE.new

[wtr-general] Re: A real newbie question

2009-08-26 Thread Matt
Cheers - thanks for that. On Aug 26, 9:53 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Aug26,2009at1:37PM, Matt matt.walt...@three.com.au wrote: Test_site=http://www.google.com test26aug.rb:2: undefined local variable or method `www' for main:Object (NameError) You

[wtr-general] Re: A real newbie question

2009-08-26 Thread Matt
Cheers - thanks for that. On Aug 26, 9:53 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Aug26,2009at1:37PM, Matt matt.walt...@three.com.au wrote: Test_site=http://www.google.com test26aug.rb:2: undefined local variable or method `www' for main:Object (NameError) You

[wtr-general] Re: A real newbie question

2009-08-26 Thread John Kolokotronis
The first error is the missing double quotes, like Željko pointed out. Your script will still not run though as there are a couple of other errors. You set up the browser like this: $ff = FireWatir::Firefox.new instead of: Ff=Firefox.new (if you use a capital letter, you set up the browser

[wtr-general] Re: Not able to enter login credentials in Sign In section

2009-08-26 Thread Dylan
Well, your code isn't finding the sign in text fields in the first place. Are you sure that the name value for those fields are Email and Passwd? Keep in mind the name field is specifically declared, it isn't just whatever text is nearby. Also, it looks like the first frame is called signup, so

[wtr-general] Re: Help selecting elements of a drop down list when the site uses Javascript/ASP.net

2009-08-26 Thread Doodle
Thanks for your response, Chuck. I tried clearing the selection first, and that didn't seem to make a difference. The changing of the dropdown box does in fact trigger a postback: onchange=javascript:setTimeout('__doPostBack (\'FacsimileSearchControl1$FromDateDropdownlist\',\'\')', 0) I am

[wtr-general] Query : How to Count the Value or No of Items in Select List box

2009-08-26 Thread Rafiq .
Hi Everybody... I am new to Ruby, Watir and this Group i am automating a web based application *1. My web page has Drop down list box or Select list box* *2. It has 10 items ( Eg: 10 Diff car names Audi, BMW, Mazda etc) or it can contain N of Cars also* Scenario 1. After selecting the

[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=enq=#e9ec1258c2aa547f You must use click_no_wait Good luck, Darryl

[wtr-general] Query : How to Count the Value or No of Items in Select List box

2009-08-26 Thread rasein
Hi Everybody... I am new to Ruby, Watir and this Group i am automating a web based application 1. My web page has Drop down list box or Select list box 2. It has 10 items ( Eg: 10 Diff car names Audi, BMW, Mazda etc) or it can contain N of Cars also Scenario 1. After selecting the car,

[wtr-general] Re: A real newbie question

2009-08-26 Thread Matt
Thanks for your help John - I really appreciate it. As you rightly pointed out, it still didn't work, but I didn't want to annoy you all again with another post. I will try this tonight when I get home. Cheers, Matt On Aug 26, 11:38 pm, John Kolokotronis johnj...@gmail.com wrote: The first

[wtr-general] how to double click on Element

2009-08-26 Thread jane.liu
I am a new watir user, now I am writing a function,double click a element in the table,it will jump detail page how I can to deal with double click on Element in watir? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups