[wtr-general] Re: Handling popups without using click_no_wait
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 you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: A stupid question ... how do I apply patches to Watir? :-(
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 nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject.
[wtr-general] Re: A stupid question ... how do I apply patches to Watir? :-(
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 flames welcome as long as you show me how to apply the patch! ;-) Ok, I have good news and bad news on my battle with click_no_wait. Thanks to Ethan from the #Watir IRC channel for helping me understand how to install the patch. I was simply required to replace a line from the page-container.rb file. The bad news is the patch did not fix the problem. I'm still getting blinking yellows and no clicks. :-( -- 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.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject.
[wtr-general] Grrr! click_no_wait does not work :-(
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 111) [i386-mswin32] watir (1.6.5) Any ideas? Thanks. -- 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.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject.
[wtr-general] Re: Grrr! click_no_wait does not work :-(
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 displayed. .click by itself works fine it's only click_no_wait which flashes the button and does not click it. This is turning into a real nightmare as we've introduced confirm pop ups in a number of places and all my scripts are stalling at this point. :-( -- 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.com/group/watir-general To post: watir-general@googlegroups.com
[wtr-general] Re: Grrr! click_no_wait does not work :-(
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 mouseup. All I can say is that .click works. -- 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.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject.
[wtr-general] The click_no_wait flashing issue
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 http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject.
[wtr-general] Handling popups without using click_no_wait
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 ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject.
[wtr-general] Checking for contents of a text field
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 else puts did not find it end If I understand correctly the first example is looking for ALL text fields on the page to see if any of them have some value. The second is more specific and is looking at a particular text field. I know for certain that mytxtfield contains the text I am looking for ... -- 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.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject.
[wtr-general] Re: Checking for contents of a text field
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 the field? Can you please tell me how the syntax will look? Thanks. -- 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.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject.
[wtr-general] Re: ajax and unable to locate element
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') @b.wait() but I am still not able to locate any of the elements. For example: @b.text_field(:name, 'order_ref[1]').set('OE123') and I get the error: Watir::Exception::UnknownObjectException: Unable to locate element, using :name, order_ref[1] I can inspect that element with Firebug and the name is fine. I tried also using id, but I get the same error. Any help with this is much appreciated. Just a suggestion, rather than attach to an existing window try opening a browser and navigating directly to the page. Not sure if that will help ... -- 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.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject.
[wtr-general] Re: Checking for contents of a text field
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, 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.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject.
[wtr-general] Re: ajax and unable to locate element
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 never had this problem ... -- 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.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject.
[wtr-general] Re: Handling a windows file upload dialog box
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 http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject.
[wtr-general] Re: Component focus issues on different computers
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, it's not really a proper drop down list, it just looks like one. It's in fact a read only text field which fires off some JS when you click on it. The JS anchors a listbox underneath the text field. I don't really know why it was coded this way, something to do with way the form looks I was told. Either ways I've found a solution to this problem after trawling this NG. If you do a send_keys({TAB}) first and then invoke the focus command it works fine. Thanks for your post. -- 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.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject.
[wtr-general] How do I force typing into a text field
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 at the end of the field. However if you were to manually type the string 091234567 then the field populates as expected. Any ideas? -- 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.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject.
[wtr-general] Re: How can I send a keystrokes using Watir?
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 by what you've written. I got send_keys to work just like in autoit. However I don't understand what you mean by use autoit. Are you saying you can use autoit directly from within Watir? Is this by doing a require 'autoit' or something similar? -- 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.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject.
[wtr-general] Component focus issues on different computers
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 browser URL field instead of the desired component. I'm using the following command: ie.text_field(:id, Request_Salutation_I).focus ie.send_keys({DOWN}) Basically this just sets the salutation field on a request form to the first value. -- 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.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject.
[wtr-general] Re: How can I send a keystrokes using Watir?
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... send_keys is a method that allows you to execute autoit commands within watir scripts. You can check out the send_keys method onhttp://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/IE.html#M000497. Hope that helps. orde Thanks for your post. Much appreciated. -- 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.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject.
[wtr-general] Re: Component focus issues on different computers
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 on my work computer the same .focus command sets focus to the browser URL field instead of the desired component. I'm using the following command: ie.text_field(:id, Request_Salutation_I).focus ie.send_keys({DOWN}) Basically this just sets the salutation field on a request form to the first value. Sorry forgot to mention if I run the two individual commands via command line then they work fine. It's only when run as part of a script that they are failing. Really weird. :-( -- 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.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject.
[wtr-general] Handling a windows file upload dialog box
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 and found that this is a fairly common problem. The solutions I've come across suggest use of .click_no_wait. I'm trying to write some code that will click the file upload button, enter a file name (full path) in the file name field and then hit enter. This is what I tried: ie.button(:name, file_upload_button).click_no_wait ie.send_keys(c:\test.txt) ie.send_keys({ENTER}) Unfortunately click_no_wait just flashes the button and the dialog box does not pop up. I've tried click by itself and that opens the dialog box but of course the rest of the script does not execute. Any ideas? -- 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.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject.
[wtr-general] How can I send a keystrokes using Watir?
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 this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com To unsubscribe, reply using remove me as the subject.