[wtr-general] Re: Chrome-Watir
The working core is there. Still work is done for building the API on top of it. You can watch the project from Github http://github.com/saivenkat/chromewatir. --Sai On Dec 2, 12:42 pm, shradha_Dalvi kshradh...@gmail.com wrote: Hi sai, Have you done with Chrome watir updation? -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Watir 1.6.5 on Ruby5
Watir 1.6.5 was mentioned in Ruby5, episode #31: http://ruby5.envylabs.com/episodes/32-episode-31-december-1-2009 Željko -- watir.com - community manager watirpodcast.com - host -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] How to set a style value for a div/class
On Tue, Dec 1, 2009 at 10:26 PM, QAguy qablogm...@gmail.com wrote: div id=slider_handle_min class=handle selected style=left: 0px; I need to set the style value above to a value greater than 0px. Watir is _just_ a browser driver. That means it drives the browser like a real user would. How would you do it manually? Željko -- watir.com - community manager watirpodcast.com - host -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Does watir works on opera browser?
On Wed, Dec 2, 2009 at 5:41 AM, shradha_Dalvi kshradh...@gmail.com wrote: Kindly let me know,does watir works for Opera browser. Watir does not support Opera. There is plan to support Opera in Watir 2.0, but we do not know when it will be released. Watir 2.0 source: http://github.com/jarib/watir2 Željko -- watir.com - community manager watirpodcast.com - host -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Re: Browser window close and Javascript popup problem on Watir 1.6.5/Ruby 1.8.6-26
One thing you might try, in order to track things down, would be to try running your tests with with Watir 1.6.2. If you do this, you should manually install firewatir 1.6.2 also (gem install firewatir -v 1.6.2). And then uninstall any newer watir gems (if any). Bret On Dec 1, 2:41 pm, DerekW derek.wong...@gmail.com wrote: To further clarify: My colleague's machine: Windows XP, Ruby 1.8.2-14, Watir 1.5.6 and IE 8 - test works. The other test machines: Windows 7 Enterprise, Ruby 1.8.6-26, Watir 1.6.5 and IE 8 - test does not work. So, potentially it could be Windows or Watir issue. Unfortuantely, I haven't tried the old Ruby/Watir against Windows 7 configuration to eliminate the OS yet. Derek W. On Dec 1, 6:30 pm, DerekW derek.wong...@gmail.com wrote: Hi, here's a scenario that seems to work in Watir 1.5.6 but seems to exhibit problems under 1.6.5: Our web application opens the main browser window and subsequently two other browser windows, the third browser window attaches an event handler that intercepts the close window (X) button. If the third window's browser state is dirty and the user clicks close window (rather than the OK and Cancel) buttons on the browser page it raises a Javascript popup asking whether the user wants to navigate away from this browser window. When we ran our automated tests using Watir 1.5.6 this test was able to navigate past the popup raised when the user attempted to click the close button. On Watir 1.6.5 we've noticed that we hang when the popup is hit. Anyone know of a nice way of handling this or whether what I observe is a bug or change in the behaviour of Watir 1.6.5 - my colleague's machine still has Ruby 1.8.2-14, Watir 1.5.6 and IE 8 and the test case works fine. Thanks for any help. Derek W. PS - Having said this my experience of Watir 1.6.5 has been pretty positive so far. -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Re: Rescue
Another solution would be to use tbl = ie.frame(:id,'ReportFramectl144').frame(:id,'report').table (:class, /a3/) This should cover both cases. On Dec 1, 10:24 am, Steve Hamlett shaml...@twia.org wrote: I'm using Watir to automate the testing of a report generated by MS SQL Reporting Services. The report generates 4 pages of output. Each page except the last one has a table which is addressable with Watir as follows: tbl = ie.frame(:id,'ReportFramectl144').frame (:id,'report').table(:class,'a3 r3') For whatever reason, the final page is addressed differently. It is: tbl = ie.frame(:id,'ReportFramectl144').frame (:id,'report').table(:class,'a3') So in order to handle this situation I placed the following 'begin - rescue - end' block inside a loop which is executed for each page of the output: begin tbl = ie.frame(:id,'ReportFramectl144').frame (:id,'report').table(:class,'a3 r3') puts A3 R3 rescue tbl = ie.frame(:id,'ReportFramectl144').frame (:id,'report').table(:class,'a3') puts A3 end My expectation is that any exception generated by the 'a3 r3' definition of tbl should cause the 'a3' definition of tbl to be executed. However, this is not happening. When the 'a3 r3' exception raises an exception, the script does not execute the rescue clause, nor does it skip the final execution of 'puts A3 R3. The complete output, run within Scite, is as follows: ruby wt_no_policy_claims_list_spec.rb A3 R3 A3 R3 A3 R3 A3 R3 F 1) Watir::Exception::UnknownObjectException in 'Wt No Policy Claims List No Policy Claims' Unable to locate element, using :class, a3 r3 wt_no_policy_claims_list_spec.rb:42: wt_no_policy_claims_list_spec.rb:26:in `loop' wt_no_policy_claims_list_spec.rb:26: wt_no_policy_claims_list_spec.rb:8: Finished in 7.032 seconds 1 example, 1 failure So 'rescue' doesn't seem to be working as advertised, at least as I understand it. Any wisdom would be much appreciated. -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] using rspec -b (backtrace) option makes watir run in an invisible window
Is this intended behavior? The window is invisible, when I look in Process explorer and try to bring IE's window to front it says no visible window found. Oddly, the window becomes visible when calling enabled_popup. This is about 20 seconds into the test, so it's not window lag and the test is usually successful upon completion about 10 seconds later. Without the -b option it runs normally; the window appears on creation and you can watch the whole test. IE on XP probably sp3, nothing out of the ordinary... any insight is appreciated -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Re: using rspec -b (backtrace) option makes watir run in an invisible window
Watir also has a -b option, which does what you are seeing. You can use rspec's --backtrace option to avoid this behavior. On Dec 2, 11:52 am, jw joshuawal...@gmail.com wrote: Is this intended behavior? The window is invisible, when I look in Process explorer and try to bring IE's window to front it says no visible window found. Oddly, the window becomes visible when calling enabled_popup. This is about 20 seconds into the test, so it's not window lag and the test is usually successful upon completion about 10 seconds later. Without the -b option it runs normally; the window appears on creation and you can watch the whole test. IE on XP probably sp3, nothing out of the ordinary... any insight is appreciated -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] how to use regular expression in $ie.text.include?
regular expression is not woking in function.any mistake in below code.? def verify_field(check,result) aa=Regexp.new check if ($ie.text.include?(aa)) $dt.WriteData(#{result},Sheet1, Pass) end end -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] regular expression in $ie.text.include? issue
regular expression is not working in $ie.text.include?.i am getting error message `include?': can't convert Regexp into String (TypeError) for the following code.any idea please.? def verify_field(check,result) if $ie.text.include?(Regexp.new(check)) $dt.WriteData(#{result},Sheet1, Pass) else $dt.WriteData(#{result},Sheet1, Fail) end end -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Re: regular expression in $ie.text.include? issue
'check' variable is a string.actually i need to verify some text in all the pages.so i wrote a function and pass the text through the variable check.i want to use the regular expression for the text as it is failed in some pages even the particular text is displayed in page. On Dec 2, 2:59 pm, Ethan notet...@gmail.com wrote: String#scan is not really appropriate for just testing whether a string matches a regexp (it is certainly possible, but is overkill). the =~ operator should suffice: def verify_field(check,result) if $ie.text =~ Regexp.new(check) $dt.WriteData(#{result},Sheet1, Pass) else $dt.WriteData(#{result},Sheet1, Fail) end end I'm curious if the 'check' variable is a string, or a regexp, though - if it's a regexp, you don't need to do Regexp.new; if it's a string, that seems like an odd thing to pass in to match as a regexp. maybe you just want $ie.text.include?(check) -Ethan On Wed, Dec 2, 2009 at 15:40, John Fitisoff jfitis...@yahoo.com wrote: try ie.text.scan(regexp) if ie.text.scan(/foo/).length 0 ...write some data... end btw, this isn't a watir issue, it's a ruby issue. IE#text just returns a string and a string's include? method doesn't accept a regex as an argument, at least my installed ruby version doesn't support it. --- On Wed, 12/2/09, mohe j.mohanpra...@gmail.com wrote: From: mohe j.mohanpra...@gmail.com Subject: [wtr-general] regular expression in $ie.text.include? issue To: Watir General watir-general@googlegroups.com Date: Wednesday, December 2, 2009, 12:22 PM regular expression is not working in $ie.text.include?.i am getting error message `include?': can't convert Regexp into String (TypeError) for the following code.any idea please.? def verify_field(check,result) if $ie.text.include?(Regexp.new(check)) $dt.WriteData(#{result},Sheet1, Pass) else $dt.WriteData(#{result},Sheet1, Fail) end end -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Re: regular expression in $ie.text.include? issue
Thank you John,Ethan. it is my bad..the text is displayed inside the frame. $ie.frame(:name,Main).text.include? is working On Dec 2, 3:48 pm, mohe j.mohanpra...@gmail.com wrote: 'check' variable is a string.actually i need to verify some text in all the pages.so i wrote a function and pass the text through the variable check.i want to use the regular expression for the text as it is failed in some pages even the particular text is displayed in page. On Dec 2, 2:59 pm, Ethan notet...@gmail.com wrote: String#scan is not really appropriate for just testing whether a string matches a regexp (it is certainly possible, but is overkill). the =~ operator should suffice: def verify_field(check,result) if $ie.text =~ Regexp.new(check) $dt.WriteData(#{result},Sheet1, Pass) else $dt.WriteData(#{result},Sheet1, Fail) end end I'm curious if the 'check' variable is a string, or a regexp, though - if it's a regexp, you don't need to do Regexp.new; if it's a string, that seems like an odd thing to pass in to match as a regexp. maybe you just want $ie.text.include?(check) -Ethan On Wed, Dec 2, 2009 at 15:40, John Fitisoff jfitis...@yahoo.com wrote: try ie.text.scan(regexp) if ie.text.scan(/foo/).length 0 ...write some data... end btw, this isn't a watir issue, it's a ruby issue. IE#text just returns a string and a string's include? method doesn't accept a regex as an argument, at least my installed ruby version doesn't support it. --- On Wed, 12/2/09, mohe j.mohanpra...@gmail.com wrote: From: mohe j.mohanpra...@gmail.com Subject: [wtr-general] regular expression in $ie.text.include? issue To: Watir General watir-general@googlegroups.com Date: Wednesday, December 2, 2009, 12:22 PM regular expression is not working in $ie.text.include?.i am getting error message `include?': can't convert Regexp into String (TypeError) for the following code.any idea please.? def verify_field(check,result) if $ie.text.include?(Regexp.new(check)) $dt.WriteData(#{result},Sheet1, Pass) else $dt.WriteData(#{result},Sheet1, Fail) end end -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general-Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Re: Browser window close and Javascript popup problem on Watir 1.6.5/Ruby 1.8.6-26
Hi Bret, I thought that Watir 1.6.2 did not support attach(). I remembered reading in the 1.6.2 release notes that attach wasn't supported so this was the reason I held back on 1.5.6 before moving to 1.6.5. Please correct me if I've misinterpreted something here. Thanks. Derek W. On Dec 3, 6:44 am, b...@pettichord.com bpettich...@gmail.com wrote: One thing you might try, in order to track things down, would be to try running your tests with with Watir 1.6.2. If you do this, you should manually install firewatir 1.6.2 also (gem install firewatir -v 1.6.2). And then uninstall any newer watir gems (if any). Bret On Dec 1, 2:41 pm, DerekW derek.wong...@gmail.com wrote: To further clarify: My colleague's machine: Windows XP, Ruby 1.8.2-14, Watir 1.5.6 and IE 8 - test works. The other test machines: Windows 7 Enterprise, Ruby 1.8.6-26, Watir 1.6.5 and IE 8 - test does not work. So, potentially it could be Windows or Watir issue. Unfortuantely, I haven't tried the old Ruby/Watir against Windows 7 configuration to eliminate the OS yet. Derek W. On Dec 1, 6:30 pm, DerekW derek.wong...@gmail.com wrote: Hi, here's a scenario that seems to work in Watir 1.5.6 but seems to exhibit problems under 1.6.5: Our web application opens the main browser window and subsequently two other browser windows, the third browser window attaches an event handler that intercepts the close window (X) button. If the third window's browser state is dirty and the user clicks close window (rather than the OK and Cancel) buttons on the browser page it raises a Javascript popup asking whether the user wants to navigate away from this browser window. When we ran our automated tests using Watir 1.5.6 this test was able to navigate past the popup raised when the user attempted to click the close button. On Watir 1.6.5 we've noticed that we hang when the popup is hit. Anyone know of a nice way of handling this or whether what I observe is a bug or change in the behaviour of Watir 1.6.5 - my colleague's machine still has Ruby 1.8.2-14, Watir 1.5.6 and IE 8 and the test case works fine. Thanks for any help. Derek W. PS - Having said this my experience of Watir 1.6.5 has been pretty positive so far. -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general