[Wtr-general] Need help populating a field array using variables

2006-06-29 Thread Legarreta, Frank
Thank you all so much! ie.text_field(:name,grade_result_list[#{x}].beanCount).set(800) Worked like a charm. Regards, Frank "This e-mail and any attachments may contain confidential and privileged information. Any dissemination or use of the information by a person other than

[Wtr-general] Help with finding a link using regular expression and url propertie

2006-06-29 Thread Rodrigo Julian Martin
Hello! I need to find and click a link with an specific url, which depends of an item id number: itemId="22053541" $browser.link(:url, /sell?act=categsubAct=similarItemsiteID=MLAitemID=#{itemId}/).click When i run this, watir shows me: c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1939:in

Re: [Wtr-general] File Download Pop-Ups

2006-06-29 Thread Charley Baker
Take a look at winClicker.rb, clickWindowsButton should work, something like this: require 'watir/winClicker'clicker = WinClicker.newclicker.clickWindowsButton('File Download', 'Save')-Charley On 6/28/06, Andy Case [EMAIL PROTECTED] wrote: Hi, I get the following Pop-up from my

Re: [Wtr-general] Help with finding a link using regular expression andurl propertie

2006-06-29 Thread Ravishankar, MG
Add a back slash before the question mark - like this: $browser.link(:url, /sell\?act=categsubAct=similarItemsiteID=MLAitemID=#{itemId}/).click itemId="22053541" $browser.link(:url, /sell?act=categsubAct=similarItemsiteID=MLAitemID=#{itemId}/).click When i run this, watir shows me:

[Wtr-general] xpath error

2006-06-29 Thread NIcky Sandhu
I got an error using the xpath feature with watir 1.5.1.1045. ie.link(:xpath,'//a[contains(string(.),"Search Now")]').click I have attached the error document and the stack trace below. The document seems to be valid xml and other xpath tools work fine REXML::ParseException:

Re: [Wtr-general] Help with finding a link using regular expressionandurl propertie

2006-06-29 Thread Rodrigo Julian Martin
Thank you so much Ravishankar! winmail.dat___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] File Download Pop-Ups

2006-06-29 Thread Cain, Mark
I ended up having to put a sleep 2 in winClicker to get this to click the button. At approximately line 299 in WinClicker.rbthis section: if d != -1 makeWindowActive(hwnd) sleep 2 clickButtonWithHandle(d) else After I added this then it would click the specified button.

Re: [Wtr-general] How to detect open browsers

2006-06-29 Thread Bret Pettichord
On 6/29/06, David Solis [EMAIL PROTECTED] wrote: I want to be able to detect any open browsers before my tests starts running. Does anybody have an idea on how to detect open browsers? Look at Watir::IE.close_all in watir/close_all.rb in trunk or a recent build. It finds browsers and then closes