[wtr-general] Re: Chrome-Watir

2009-12-02 Thread Sai Venkat
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 wrote: > Hi sai, >            Have you done with Chrome watir updation? -- You received this

[wtr-general] Watir 1.6.5 on Ruby5

2009-12-02 Thread Željko Filipin
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

Re: [wtr-general] How to set a style value for a div/class

2009-12-02 Thread Željko Filipin
On Tue, Dec 1, 2009 at 10:26 PM, QAguy wrote: > > > 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

Re: [wtr-general] Does watir works on opera browser?

2009-12-02 Thread Željko Filipin
On Wed, Dec 2, 2009 at 5:41 AM, shradha_Dalvi 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 -- wati

[wtr-general] Re: How to set a style value for a div/class

2009-12-02 Thread QAguy
The actual user action would be to click and hold the mouse over the slider and then drag the slider to the desired location (i.e. the px location). Not sure if you can do this via watir but wanted to see if it is possible. Thanks QAguy On Dec 2, 7:54 am, Željko Filipin wrote: > On Tue, Dec 1, 2

[wtr-general] Re: Browser window close and Javascript popup problem on Watir 1.6.5/Ruby 1.8.6-26

2009-12-02 Thread b...@pettichord.com
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 w

[wtr-general] Re: Rescue

2009-12-02 Thread b...@pettichord.com
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 wrote: > I'm using Watir to automate the testing of a report generated by MS > SQL Reporting Services.  The report g

[wtr-general] using rspec -b (backtrace) option makes watir run in an invisible window

2009-12-02 Thread jw
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 u

[wtr-general] Re: using rspec -b (backtrace) option makes watir run in an invisible window

2009-12-02 Thread jw
sorry: ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] watir (1.6.2) On Dec 2, 11:52 am, jw 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 vi

[wtr-general] Re: using rspec -b (backtrace) option makes watir run in an invisible window

2009-12-02 Thread b...@pettichord.com
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 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 > vis

[wtr-general] Re: using firewatir on the mac

2009-12-02 Thread b...@pettichord.com
I think Jari removed the activesupport dependency from watir/firewatir 1.6.5. Could this be something that was missed? Bret On Nov 25, 6:04 pm, joshmoore wrote: > Ethan, that fixed it thanks! > > Josh > > On Nov 25, 2009, at 11:29 PM, Ethan wrote: > > > String#demodulize is an activesupport meth

[wtr-general] how to use regular expression in $ie.text.include?

2009-12-02 Thread mohe
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 Googl

[wtr-general] how to use regular expression inside a function?

2009-12-02 Thread mohe
regular expression is not woking in text.include? and i am getting the error message "`include?': can't convert Regexp into String (TypeError)". any mistake in below code.? def verify_field(check,result) aa=Regexp.new check if ($ie.text.include?(aa)) $dt.WriteData("#{result}",

[wtr-general] regular expression in $ie.text.include? issue

2009-12-02 Thread mohe
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", "

Re: [wtr-general] regular expression in $ie.text.include? issue

2009-12-02 Thread John Fitisoff
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. --

Re: [wtr-general] regular expression in $ie.text.include? issue

2009-12-02 Thread Ethan
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.WriteDa

[wtr-general] Re: regular expression in $ie.text.include? issue

2009-12-02 Thread mohe
'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, E

RE: [wtr-general] Re: regular expression in $ie.text.include? issue

2009-12-02 Thread Ning Cao
Try: $ie.text.include?("#{check}") -Original Message- From: mohe [mailto:j.mohanpra...@gmail.com] Sent: Wednesday, December 02, 2009 1:49 PM To: Watir General Subject: [wtr-general] Re: regular expression in $ie.text.include? issue 'check' variable is a string.actually i need to verify

[wtr-general] Re: regular expression in $ie.text.include? issue

2009-12-02 Thread mohe
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 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 > v

[wtr-general] Re: Browser window close and Javascript popup problem on Watir 1.6.5/Ruby 1.8.6-26

2009-12-02 Thread DerekW
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:4