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

2013-02-06 Thread Željko Filipin
On Mon, Feb 4, 2013 at 11:13 PM, Phuoc Can Hua h...@huaonline.com wrote:

 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.


Please read this:

https://github.com/watir/watirbook/blob/master/installation/windows.md

Ž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] 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 
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?

2013-02-05 Thread Joe Fleck
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.




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 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?

2013-02-05 Thread Joe Fleck
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?

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 
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?

2013-02-05 Thread Joe Fleck
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.




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

2013-02-04 Thread Joe Fleck
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.

I am pasting the error message here in the thread.

Hi Joe,
Thanks for the reply. I just installed watir-webdriver successfully.
I'm still getting this (which I had before)
  1) Error:
test_LogonIntoHMS_HMS_Login_1(HMS_Priority1_Add_TestCases):
Watir::Exception::UnableToStartJSShException: Unable to connect to
machine : 127.0.0.1 on port 9997. Make sure that JSSh is proper
ly installed and Firefox is running with '-jssh' option

C:/Ruby192/lib/ruby/gems/1.9.1/gems/firewatir-1.9.2/lib/firewatir/firefox.rb:156:in
`rescue in set_defaults'

C:/Ruby192/lib/ruby/gems/1.9.1/gems/firewatir-1.9.2/lib/firewatir/firefox.rb:148:in
`set_defaults'

C:/Ruby192/lib/ruby/gems/1.9.1/gems/firewatir-1.9.2/lib/firewatir/firefox.rb:43:in
`initialize'

C:/Ruby192/lib/ruby/gems/1.9.1/gems/commonwatir-1.9.2/lib/watir/browser.rb:65:in
`new'

C:/Ruby192/lib/ruby/gems/1.9.1/gems/commonwatir-1.9.2/lib/watir/browser.rb:65:in
`new'
C:/hms_auto_test/HMS/HMSCommon_SP3/HMSTestCase.rb:83:in `setup'

I tried following without success:
http://www.natontesting.com/2009/07/24/firewatir-jssh-unable-to-connect-fixed/

I guess something is still missing.


Joe


On Mon, Feb 4, 2013 at 5:13 PM, Phuoc Can Hua h...@huaonline.com wrote:
 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/FireWatir+Installation

 Looks like I have to install something. Unfortunately the JSSH extension is
 not for FIrefox 18.

 I guess I'm on the wrong path. Can anybody help?

 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.



-- 
-- 
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?

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. 



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?

2013-02-04 Thread Joe Fleck
Make sure to remove the require statement for firewatir and replace it with
require 'watir-webdriver'.

Joe
On Feb 4, 2013 9:53 PM, Phuoc Can Hua h...@huaonline.com wrote:

 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.




-- 
-- 
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?

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/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.