[wtr-general] Re: Handling popups without using click_no_wait

2010-05-05 Thread Rats
On May 6, 6:02 am, Etsap aaron.di...@gmail.com wrote: Make sure you are using Ruby 1.8.6-26, not 1.8.6-27. Can you please tell me how I can check this? Thanks. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because

[wtr-general] Re: A stupid question ... how do I apply patches to Watir? :-(

2010-04-14 Thread Rats
On Apr 14, 4:30 pm, Michael Hwee michael_h...@yahoo.com wrote: Can you use click! Click! just launches the popup just like click by itself would do. So performance wise it is no different from click. -- Before posting, please read http://watir.com/support. In short: search before you ask, be

[wtr-general] Re: A stupid question ... how do I apply patches to Watir? :-(

2010-04-13 Thread Rats
On Apr 14, 9:05 am, Rats crapats...@yahoo.com.au wrote: As per my previous posts I am having problems with click_no_wait. Apparently the following patch will fix the problem: http://jira.openqa.org/browse/WTR-320 I can't seem to find any info on how to apply the patch on this page. All

[wtr-general] Grrr! click_no_wait does not work :-(

2010-04-12 Thread Rats
I've been looking at ways of handling pop ups and it appears the way to go is via click_no_wait. Unfortunately this is not working for me as when I run the click_no_wait command it just flashes the button and does not click it hence no popup window. I'm running: ruby 1.8.6 (2007-09-24 patchlevel

[wtr-general] Re: Grrr! click_no_wait does not work :-(

2010-04-12 Thread Rats
On Apr 13, 8:57 am, Eric Mathiesen mathiese...@gmail.com wrote: Might be a simplistic answer, but have you set focus to the child popup window? I am fairly sure it's not a hidden pop up or anything like that as if I manually click the button (after click_no_wait flashes it) the pop up is

[wtr-general] Re: Grrr! click_no_wait does not work :-(

2010-04-12 Thread Rats
On Apr 13, 9:11 am, Ethan notet...@gmail.com wrote: Is the popup triggered by an onclick event, or an onmouseup or onmousedown event? If it's the latter, watir won't trigger it; #click and #click_no_wait don't do those events. you'll have to explicitly fire_event_no_wait('onmousedown') or

[wtr-general] The click_no_wait flashing issue

2010-04-12 Thread Rats
Ok, I've done much research into this and it appears to be a current issue: http://jira.openqa.org/browse/WTR-320 It was thought to have been resolved but the ticket was reopened in later March as many people are still reporting issues with click_no_wait. -- Before posting, please read

[wtr-general] Handling popups without using click_no_wait

2010-04-12 Thread Rats
Given I simply cannot get click_no_wait working with my current configuration are there any other ways of handling js popups? Currently I'm using: Win7 IE8 Watir 1.6.5 Ruby 1.8.6 (1 click installer version) -- Before posting, please read http://watir.com/support. In short: search before you

[wtr-general] Checking for contents of a text field

2010-04-07 Thread Rats
I'm trying to check if a field is populated on a page. This command works fine and returns found it: if ie.text_field(:value,'some value').exists? puts 'found it else puts did not find it end However this one doesn't: if ie.text_field(:id,mytextfield).value == 'some value' puts 'found it

[wtr-general] Re: Checking for contents of a text field

2010-04-07 Thread Rats
On Apr 8, 1:47 pm, Wesley Chen cjq@gmail.com wrote: ie.text_field(:id,mytextfield).value will get the value in the text field. You can't get the text_field attribute value by it. Wesley. For life, the easier, the better. So what you're saying is that I need to get the attribute value of

[wtr-general] Re: ajax and unable to locate element

2010-04-07 Thread Rats
On Apr 8, 12:16 pm, sal salem.m.ja...@gmail.com wrote: I am loading a form with an embedded table using Ajax. I am having trouble locating elements that are part of the form. I tried re- reading the dom and waiting using the following:     @b=Watir::Browser.attach(:title,'sample')    

[wtr-general] Re: Checking for contents of a text field

2010-04-07 Thread Rats
So what you're saying is that I need to get the attribute value of the field? Can you please tell me how the syntax will look? Thanks. Don't worry, I figured it out. This will return the value set for mytextfield: ie.text_field(:id, 'mytextfield').attribute_value('value') -- Before posting,

[wtr-general] Re: ajax and unable to locate element

2010-04-07 Thread Rats
On Apr 8, 2:59 pm, Sal Jamil salem.m.ja...@gmail.com wrote: I just tried that and I am getting the same error. Is this page published on the web? If so then please provide a URL so we can have a look at it. It is very strange that firebug displays the element name yet Watir cannot find it. I've

[wtr-general] Re: Handling a windows file upload dialog box

2010-04-06 Thread Rats
On Apr 6, 7:26 pm, Wesley Chen cjq@gmail.com wrote: For file upload button, there is a ready method, named: $ie.file_field(:name, ).set(your file.txt) Wesley. For life, the easier, the better. Indeed, red face Thanks very much. That works perfectly. ;-) -- Before posting, please read

[wtr-general] Re: Component focus issues on different computers

2010-04-06 Thread Rats
On Apr 7, 2:37 am, Adam Reed reed.a...@gmail.com wrote: You're selecting the first element in a drop down box?  If not, can you please provide a little bit more info on exactly what you're interacting with? ie.select_list(:id, /Request_Salutation_I/).set First Value Name Thanks, Adam Hi,

[wtr-general] How do I force typing into a text field

2010-04-05 Thread Rats
I have a text field which has a mask in it to check for valid phone numbers e.g. (__) ___ When I send this command it does not populate this field: ie.text_field (:name, RequestDemoContact1_HomePhone_I).set (091234567) The field just flashes yellow and you see some characters being typed

[wtr-general] Re: How can I send a keystrokes using Watir?

2010-04-05 Thread Rats
On Apr 2, 4:27 am, orde ohil...@gmail.com wrote: Use autoit (http://www.autoitscript.com). Here's the function list for Send:http://www.autoitscript.com/autoit3/docs/functions/Send.htm Example syntax: browser.send_keys({TAB}{DOWN}) Thanks for your reply. I am however a little bit confused

[wtr-general] Component focus issues on different computers

2010-04-05 Thread Rats
I'm having some issues with setting focus to fields on different computers. I scripted some stuff over the weekend on my home computer where I set focus to a field and then did some send_keys on the field. This worked perfectly however on my work computer the same .focus command sets focus to the

[wtr-general] Re: How can I send a keystrokes using Watir?

2010-04-05 Thread Rats
On Apr 6, 5:47 am, orde ohil...@gmail.com wrote: autoit is installed with watir.  You don't need to require it, but you'll need to make sure the .dll is registered correctly.  If you run into problems, check outhttp://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoIfixaWIN32OLERuntimeE...

[wtr-general] Re: Component focus issues on different computers

2010-04-05 Thread Rats
On Apr 6, 8:42 am, Rats crapats...@yahoo.com.au wrote: I'm having some issues with setting focus to fields on different computers. I scripted some stuff over the weekend on my home computer where I set focus to a field and then did some send_keys on the field. This worked perfectly however

[wtr-general] Handling a windows file upload dialog box

2010-04-05 Thread Rats
Firstly, I should have probably mentioned in my previous posts I am a Watir newbie. However I have done a fair bit or programming so have some knowledge when it comes to using Watir. Ok, my latest problem is to do with handling a windows file upload dialog box. I've done searches through this NG

[wtr-general] How can I send a keystrokes using Watir?

2010-03-31 Thread Rats
Ok, I've successfully clicked on a link and a new page opens. All I want to do now is to send two keystokes i.e. tab and then a down arrow. Is there a way to do this using Watir? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received