[wtr-general] How do I get the maxlength for a text_field?
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 Phuoc -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [wtr-general] How to run Watir with Firefox 18?
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 in my script. Now I need to use Watir::Browser to launch IE. Time to go back for some reading. Thank you for your help and time. Phuoc -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [wtr-general] How to run Watir with Firefox 18?
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 nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [wtr-general] How to run Watir with Firefox 18?
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 with and without firewatir. Thanks Phuoc C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find firewatir (= 1.9.2) amongst [builder- 3.0.0, childprocess-0.3.7, commonwatir-1.9.2, ffi-1.0.9-x86-mingw32, hoe-2.10.0, minitest-1.6.0, multi_json-1.5.0, net-ssh-2.1.4, nokogiri-1.5.0-x86-mingw32, rake-0.8.7, rautomation-0.6.3, rdoc-2.5.8, rubygems-update-1.8.6, rubyzip-0.9.9, s4t-utils-1.0.4, sele nium-webdriver-2.29.0, test-unit-2.3.0, user-choices-1.1.6.1, watir-1.9.2, watir-webdriver-0.6.2, websocket-1.0.7, win32-api-1.4.8 -x86-mingw32, win32-process-0.6.5, windows-api-0.4.0, windows-pr-1.2.0, xml-simple-1.1.0] (Gem::LoadError) from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:761:in `block in activate_dependencies' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:758:in `each' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:758:in `activate_dependencies' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:742:in `activate' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:209:in `rescue in try_activate' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:206:in `try_activate' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:58:in `rescue in require' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require' from C:/hms_auto_test/HMS/HMSCommon_SP3/HMSTestCase.rb:4:in `top (required)' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from C:/hms_auto_test/HMS/TestCases/HMS/HMS_Priority1_Add_TestCases.rb:4:in `top (required)' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from C:/hms_auto_test/HMS/TestSuites/HMS_TestSuite.rb:9:in `top (required)' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from ../../main/runHMSTests.rb:8:in `main' On Wednesday, 6 February 2013 12:26:08 UTC+11, Joe Fl wrote: Hi, Try placing the require statement in the begin of your code. Sorry it's capitalized but my kindle fire kept auto correcting. Require 'WATIR-WEBDRIVER' -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [wtr-general] How to run Watir with Firefox 18?
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. Joe, After uninstalling firewatir I got this: C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find firewatir (= 1.9.2) amongst [builder- 3.0.0, childprocess-0.3.7, commonwatir-1.9.2, ffi-1.0.9-x86-mingw32, hoe-2.10.0, minitest-1.6.0, multi_json-1.5.0, net-ssh-2.1.4, nokogiri-1.5.0-x86-mingw32, rake-0.8.7, rautomation-0.6.3, rdoc-2.5.8, rubygems-update-1.8.6, rubyzip-0.9.9, s4t-utils-1.0.4, sele nium-webdriver-2.29.0, test-unit-2.3.0, user-choices-1.1.6.1, watir-1.9.2, watir-webdriver-0.6.2, websocket-1.0.7, win32-api-1.4.8 -x86-mingw32, win32-process-0.6.5, windows-api-0.4.0, windows-pr-1.2.0, xml-simple-1.1.0] (Gem::LoadError) Here is my list: *** LOCAL GEMS *** builder (3.0.0) childprocess (0.3.7) commonwatir (1.9.2) ffi (1.0.9 x86-mingw32) hoe (2.10.0) minitest (1.6.0) multi_json (1.5.0) net-ssh (2.1.4) nokogiri (1.5.0 x86-mingw32) rake (0.8.7) rautomation (0.6.3) rdoc (2.5.8) rubygems-update (1.8.6) rubyzip (0.9.9) s4t-utils (1.0.4) selenium-webdriver (2.29.0) test-unit (2.3.0) user-choices (1.1.6.1) watir (1.9.2) watir-webdriver (0.6.2) websocket (1.0.7) win32-api (1.4.8 x86-mingw32) win32-process (0.6.5) windows-api (0.4.0) windows-pr (1.2.0) xml-simple (1.1.0) Phuoc -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [wtr-general] How to run Watir with Firefox 18?
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/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.2/lib/watir-webdriver/exception.rb:8:in `module:Exception': superclass m ismatch for class UnknownObjectException (TypeError) from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.2/lib/watir-webdriver/exception.rb:4:in `module:Watir' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.2/lib/watir-webdriver/exception.rb:3:in `top (required)' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.2/lib/watir-webdriver.rb:6:in `top (required)' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `require' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require' from C:/hms_auto_test/HMS/HMSCommon_SP3/HMSTestCase.rb:2:in `top (required)' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from C:/hms_auto_test/HMS/TestCases/HMS/HMS_Priority1_Add_TestCases.rb:4:in `top (required)' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from C:/hms_auto_test/HMS/TestSuites/HMS_TestSuite.rb:8:in `top (required)' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from ../../main/runHMSTests.rb:8:in `main' -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[wtr-general] Unable to read the 2nd row in IE8 table
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 of Ruby 1.9.2p180 and Watir: C:\hms_auto_test\HMS\run\local\v-test-03gem list *** LOCAL GEMS *** builder (3.0.0) commonwatir (1.9.2) ffi (1.0.9 x86-mingw32) firewatir (1.9.3, 1.9.2) hoe (2.10.0) minitest (1.6.0) net-ssh (2.1.4) nokogiri (1.5.0 x86-mingw32) rake (0.8.7) rautomation (0.6.3) rdoc (2.5.8) rubygems-update (1.8.6) s4t-utils (1.0.4) test-unit (2.3.0) user-choices (1.1.6.1) watir (1.9.2) win32-api (1.4.8 x86-mingw32) win32-process (0.6.5) windows-api (0.4.0) windows-pr (1.2.0) xml-simple (1.1.0) Nothing changed :-( Watir::Exception::UnknownCellException: Unable to locate a cell at index 1 C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-1.9.2/lib/watir/table.rb: 300:in `[]' When I displayed the contents of the table with: userTable.each do |row| puts row row.each do |cell| puts cell.text() end end it shows: type: id: name: value: disabled: false User ID Group ID Password Password Confirm Enabled type: id: name: value: disabled: false The 2nd row is empty although row_count() shows a 2. As soon as I try to access the cell[2][1] the script will fail. Again, the script is working perfectly with IE6. It failed with IE8 in the two above Ruby versions I tried. Did anyone have this issue before and know a work around? Thanks Phuoc -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com