[wtr-general] Re: overriding javascript

2009-01-08 Thread aidy lewis
Hi Tony, Certainly works, even though I have changed #click_no_wait to #click. I think we need to put this example in the js pop-up wiki and we need an example for alerts as well. For Firewatir you could re-open the FireWatir class and use #$jssh_socket.send class FireWatir::Firefox def

[wtr-general] Re: About Javascript Popups/Dialogue Box

2009-01-08 Thread aamittt
Hi Jagdeep, I am facing the same problem of handling javascript popups. Inspite of repeated posts, dint find any concrete solution. It seems this is a limitation with the Watir tool. Pathetic :( On Jan 2, 7:26 pm, Jagdeep Jain jagdeep.j...@gmail.com wrote: Hi, I have the following code but the

[wtr-general] watir trunk

2009-01-08 Thread aidy lewis
Hi, Could someone please give me the path to the new Watir trunk ( I understand it has moved from OpenQa) Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email

[wtr-general] Re: overriding javascript

2009-01-08 Thread aidy lewis
The trouble however with this method is that we will never know if it executes the js or not or does what it is supposed to do. Aidy 2009/1/8 aidy lewis aidy.le...@googlemail.com: Hi Tony, Certainly works, even though I have changed #click_no_wait to #click. I think we need to put this

[wtr-general] Re: overriding javascript

2009-01-08 Thread sai
I tried this require 'firewatir' class Element def close_js_confirm assert_exist @container.js_eval(window.confirm = function(){return true;}) sleep 1 end end ff = FireWatir::Firefox.new ff.goto(http://www.w3schools.com/JS/tryit.asp? filename=tryjs_confirm) ff.frame(:name,

[wtr-general] Re: overriding javascript

2009-01-08 Thread sai
sorry forgot to mention that it is working in firebug. So I am not sure why it is not workin in FireWatir On Jan 8, 6:34 pm, sai saidesertrose2...@gmail.com wrote: I tried this require 'firewatir' class Element   def close_js_confirm     assert_exist     @container.js_eval(window.confirm

[wtr-general] Clicking a string

2009-01-08 Thread carl.shau...@gmail.com
First a big thanks to Charley for replying to my previous post. I have managed to methodically isolate the target element in the AUT. Now I am uncertain how to click on the text string. If interested, below is the code I used to isolate the target string. Now that I have isolated the target

[wtr-general] Re: Testing web services was Re: Capturing data within an xml

2009-01-08 Thread Charley Baker
Winstan, I've never used the soap library directly as you seem to be doing. We're using soap4r: http://dev.ctor.org/soap4r to test webservices, which I've found to be a good solution and interactively calling the service/checking responses instead of comparing a known good xml to the generated

[wtr-general] if $ie.label(:text,label.to_s).exists? - Assertion Error

2009-01-08 Thread Moochie
if $ie.label(:text,label.to_s).exists? I'm getting assert_exists: Unbale to locate element, using :text, Text Value Are you unable to check if a label exists using text attribute? Thanks, DD --~--~-~--~~~---~--~~ You received this message because you are

[wtr-general] Watir (Firewatir specifically) on multiple browser

2009-01-08 Thread sadjester
I've been try to figure out what the best practice is for watir regarding running a number of tests in parallel. So far, other then deploying multiple machines and allocating browser time to a group of tests and managing that, I haven't had an amazing amount of luck. Initially, I thought - hey,

[wtr-general] Re: if $ie.label(:text,label.to_s).exists? - Assertion Error

2009-01-08 Thread Tiffany Fodor
I'm just curious Does this work if you assign label.to_s to a variable first and try to locate the label? labelText = label.to_s $ie.label(:text, 'labelText').exists? -Tiffany On Jan 8, 11:29 am, Moochie dduph...@redbrickhealth.com wrote: if $ie.label(:text,label.to_s).exists? I'm

[wtr-general] Re: if $ie.label(:text,label.to_s).exists? - Assertion Error

2009-01-08 Thread Tiffany Fodor
oops, had a typo in there labelText = label.to_s $ie.label(:text, labelText).exists? On Jan 8, 2:43 pm, Tiffany Fodor tcfo...@comcast.net wrote: I'm just curious Does this work if you assign label.to_s to a variable first and try to locate the label? labelText = label.to_s

[wtr-general] Re: if $ie.label(:text,label.to_s).exists? - Assertion Error

2009-01-08 Thread Darin Duphorn
That actually what I'm using $ie.label(:text,label.to_s).exists? -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Tiffany Fodor Sent: Thursday, January 08, 2009 3:43 PM To: Watir General Subject: [wtr-general] Re: if

[wtr-general] Re: if $ie.label(:text,label.to_s).exists? - Assertion Error

2009-01-08 Thread Tiffany Fodor
Hey Darin! I was just wondering if there's a problem modifying the variable with the to_s in the object specifier or if maybe 'label' is some kind of reserved keyword or variable. That's why I suggested changing the variable name and modifying it outside of the object identifier. -Tiffany On

[wtr-general] Re: if $ie.label(:text,label.to_s).exists? - Assertion Error

2009-01-08 Thread Darin Duphorn
I appreciate any help. Do you have an application that uses Labels? If so, could you please try this. Thanks, Darin -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Tiffany Fodor Sent: Thursday, January 08, 2009 3:48 PM

[wtr-general] How to store data from a CSV file into an array

2009-01-08 Thread Margam
Hello all, I am trying to get data from a particular column (second in my case) of an CSV file and store it into an array. And then use the array elements within my script Curerntly my script(below) uses the datahandler.rb --- require 'watir' require 'watir/datahandler' require

[wtr-general] element_by_xpath return value

2009-01-08 Thread Richard Lawrence
Using FireWatir's element_by_xpath on my Mac, I get the expected type for the element. For example, on the Google home page: irb(main):008:0 b.element_by_xpath(//*...@name='btnG']).class submit = FireWatir::Button But with Watir (on Windows, of course), I always get an instance of WIN32OLE

[wtr-general] Re: Multiple Attributes Issue

2009-01-08 Thread wesley chen
I think text_field doesn't support multiple attributes in this release. Thanks. Wesley Chen. On Fri, Jan 9, 2009 at 3:32 AM, Moochie dduph...@redbrickhealth.com wrote: $ie.text_field(:id='diagnosis_date',:index=index) Creates a error send:{index=2, :id+diagnosis_date} is not a symbol.

[wtr-general] Re: Read text from a text_field

2009-01-08 Thread gem dandy
OK - Next dumb questions - 1) where should the value appear? I though that it would show up in the command window 2) Once I can get hold of the value, what is the simple syntax for the compare. Again thanks, Gem On Jan 8, 10:01 pm, Jason freezingki...@gmail.com wrote: Try:

[wtr-general] Re: About Javascript Popups/Dialogue Box

2009-01-08 Thread Wilson Xu
Hi guy,whether it can work or not? On Fri, Jan 9, 2009 at 2:36 PM, aami...@gmail.com wrote: Hi Wilson, I am using latest Ruby 1.8.6-27 with the watir 1.6 On Jan 9, 11:07 am, Wilson Xu xu.xiaodong.wil...@gmail.com wrote: Which watir version do you use? On Fri, Jan 9, 2009 at 1:29 PM,

[wtr-general] Cannot access New Browser window generated through Javascript code executed on Click of a Button.

2009-01-08 Thread asheesh misra
Hi All, I am trying to write a WATIR script to automate data filling in a web page. On this webpage, I have a button, for which, on being clicked, some javascript code is called. This javascript code opens a new browser window (without any menubar, tool bar and address bar). I am unable to