Re: [wtr-general] How to run Watir with Firefox 18?
Can you paste the code you are executing here? Joe On Mon, Feb 4, 2013 at 10:22 PM, Phuoc Can Hua h...@huaonline.com wrote: 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. -- -- 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] Watir sets textfield values of dot in non-English characters!
I use Windows 7, and have two languages installed for my keyboard: English and Hebrew. Whenever I use Watir to type into a text field: browser.text_field(:id=foo).value = gu...@dna-7.com What gets filled in the text field is guyץr@dna-7ץcom ץ is the Hebrew character that would have been typed if my keyboard was set to Hebrew The other characters except for the dot are typed in English; and the error occurs on IE, FireFox and Chrome. This happens when I use quotes AND double quotes, and also with proper escape charactes (i.e. 'guy\.r...@dna-7.com'). Any ideas about how can I fix this? -- -- 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] Getting constant net/protocol.rb:140:in `rescue in rbuf_fill': Timeout::Error exception for Watir-webdriver after couple hours of use
Env: 1. ruby 1.9.2p180 2. watir-webdriver (0.6.2) 3. InternetExplorerDriver server (32-bit) 2.29.0.0 I am running usual functional tests (that worked perfectly on usual watir), so it is almost 100% no dependencies on what I test, but more what I use for testing. Issue can be reproduced on FF too, not only on IE, but on IE more frequently That exception usually occurs in random places and usually after couple of hours running the script. If I close the browser frequently, so issue reproduced more rarely, but still reproduce I really need your help in that and maybe someone already faced it and know the solution. Big,big thanks in advance -- -- 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] Re: help please
hi i suggest using id attribute without any quotes for name needed in the text field and a comma separator instead on=. example browser.text_field(:id,idDiv_PWD_UsernameExample).set te...@test.com On Saturday, February 2, 2013 11:49:11 PM UTC+5:30, mc060200778 wrote: Hi, my question is how to set value in the textbox with following html code *div id=idDiv_PWD_UsernameExample class=placeholder ltr_override aria-hidden=true style=cursor: text;som...@example.com javascript: /div* *1st:* @browser = Watir::Browser.new :chrome @browser.div(:id = idDiv_PWD_UsernameExample).set 'te...@test.comjavascript: ' *2nd:* @browser = Watir::Browser.new :chrome @browser.text_field(:id = idDiv_PWD_UsernameExample).set ( te...@test.com javascript:) *3rd:* @browser = Watir::Browser.new :chrome @browser.div(:class = *placeholder ltr_override*).set (te...@test.comjavascript: ) -- -- 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] I am beginner, getting error please help !
On Mon, Feb 4, 2013 at 3:25 PM, Amit Kumar amit.sr...@gmail.com wrote: But if we have Watir-webdriver for Firefox. Why do we need selenium-webdriver? Is it mandatory ? Yes. watir-webdriver gem is just an API on top of selenium-webdriver gem. Željko -- https://leanpub.com/watirbook -- -- 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] Watir sets textfield values of dot in non-English characters!
On Mon, Feb 4, 2013 at 6:29 PM, Guy Rapaport guy4...@gmail.com wrote: browser.text_field(:id=foo).value = gu...@dna-7.com What gets filled in the text field is guyץr@dna-7ץcom Please create a new issue here: https://github.com/watir/watir-webdriver/issues When creating the issue, please provide your versions of Ruby, watir-webdriver and selenium-webdriver gems. Željko -- https://leanpub.com/watirbook -- -- 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] help please
On Sat, Feb 2, 2013 at 7:19 PM, Sohail Mirza mrz...@gmail.com wrote: my question is how to set value in the textbox with following html code *div id=idDiv_PWD_UsernameExample class=placeholder ltr_override aria-hidden=true style=cursor: text;some...@example.com/div* This is a div, not at text field. Are you testing wysiwyg editor? http://watirwebdriver.com/wysiwyg-editors/ Željko -- https://leanpub.com/watirbook -- -- 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] I am beginner, getting error please help !
Thanks Željko. Appreciate your help !! On Tue, Feb 5, 2013 at 7:54 PM, Željko Filipin zeljko.fili...@gmail.comwrote: On Mon, Feb 4, 2013 at 3:25 PM, Amit Kumar amit.sr...@gmail.com wrote: But if we have Watir-webdriver for Firefox. Why do we need selenium-webdriver? Is it mandatory ? Yes. watir-webdriver gem is just an API on top of selenium-webdriver gem. Željko -- https://leanpub.com/watirbook -- -- 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. -- Thanks and Regards, Amit -- -- 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, 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' 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 Joe On Tuesday, February 5, 2013, Phuoc Can Hua h...@huaonline.com wrote: 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. -- -- 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?
Hi Phouc, I make it a practice to do the following regardless of the OS I running the scripts on: require 'rubygems' require 'watir-webdriver' I believe Firewatir is no longer supported since the release of watir-webdriver. I would remove it all together because watir-webdriver supports the latest version of FireFox. The ruby files you have listed in your code are those your automation scripts? Have you tried using irb to launch firefox and see if you can interact with the site? This is a good debugging process. Some other things you might try are updating your rubygems the version i have on my windows machine is 1.8.13 and yours is 1.8.6 which seems a little old. What version of ruby are using? (ruby -v in the command window) Joe On Tue, Feb 5, 2013 at 9:08 PM, Phuoc Can Hua h...@huaonline.com wrote: 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. -- -- 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.