[wtr-general] How do I get the maxlength for a text_field?

2013-02-11 Thread Phuoc Can Hua
I used to use textField().maxlength in my scripts. Now I've changed it to use 'watir-webdriver'. It doesn't like textField and I had to change it to text_field instead. My problem is I can't get text_field().maxlength. It's saying: undefined method. How can I get maxlength of text_field? Thanks

Re: [wtr-general] How to run Watir with Firefox 18?

2013-02-06 Thread Phuoc Can Hua
After installing firewatire and commented out following lines I managed to get rid of all errors. Now my firefox is launched (with Watir::Browser.new) :-) require 'watir-webdriver' require 'watir/contrib/enabled_popup' Since I've launched IE with Watir::IE.new everything is no longer working i

Re: [wtr-general] How to run Watir with Firefox 18?

2013-02-05 Thread Phuoc Can Hua
Hi Joe, I've added require watir-webbrowser. But it didn't seem to help. Now I removed "requre 'watir'". Then it moved to something else, see below. So, I tried with installing firewatir. I still got the same message. My installed firewater was 1.9.4. Can this be a reason? I got the same error w

Re: [wtr-general] How to run Watir with Firefox 18?

2013-02-05 Thread Phuoc Can Hua
runHMSTests.rb:8 require 'HMS_TestSuite' HMS_TestSuite.rb:8 require 'HMS_Priority1_Add_TestCases' HMS_Priority1_Add_TestCases.rb:4 require 'HMSTestCase' HMSTestCase.rb:2 require 'watir-webdriver' -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be

Re: [wtr-general] How to run Watir with Firefox 18?

2013-02-04 Thread Phuoc Can Hua
On Tuesday, 5 February 2013 13:58:04 UTC+11, Joe Fl wrote: > > Make sure to remove the require statement for firewatir and replace it > with > require 'watir-webdriver'. > > Joe > > Doesn't seem I have require firewatir anywhere. I added require watir-webdriver and got this error: C:/Ruby192/l

Re: [wtr-general] How to run Watir with Firefox 18?

2013-02-04 Thread Phuoc Can Hua
On Tuesday, 5 February 2013 12:55:56 UTC+11, Joe Fl wrote: > > Phuoc, > > I don't see our previous conversation here but did you initially > install firewatir on that VM? If so you might need to do a 'gem > uninstall firewatir'. Also can you do a gem list and paste the > results here. > > >

[wtr-general] How to run Watir with Firefox 18?

2013-02-04 Thread Phuoc Can Hua
I've got scripts which are running with IE6. Now I want to run them with Firefox 18. I haven't managed to get the browser launched. I tried to follow following instructions: http://wiki.openqa.org/display/WTR/Browser.new I got some errors then I found this: http://wiki.openqa.org/display/WTR/Fir

[wtr-general] Unable to read the 2nd row in IE8 table

2011-07-27 Thread Phuoc Can Hua
I've a script which is fine running with IE6 in Ruby 1.8.6/Watir 1.5.6. When I tried to run it with IE8 I have trouble to access the 2nd row of a table. I found following discussion: http://groups.google.com/group/watir-general/browse_thread/thread/d751ee75a7fbe77b Then I installed a later version