Jssh for Firefox 4.0 beta3

181 views
Skip to first unread message

al3kc

unread,
Aug 17, 2010, 4:19:00 AM8/17/10
to Watir General
Does any one has jssh for FF4.0?

Željko Filipin

unread,
Aug 24, 2010, 4:21:08 AM8/24/10
to watir-...@googlegroups.com
On Tue, Aug 17, 2010 at 10:19 AM, al3kc <aleks.kiev.ua@gmail.com> wrote:
> Does any one has jssh for FF4.0?

Not yet, as far as I know. All plugins are here:

http://watir.com/installation/

Željko
--
watir.com - community manager
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them
vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi

Angrez Singh

unread,
Aug 24, 2010, 9:54:25 AM8/24/10
to watir-...@googlegroups.com
I'll be working on it. It will take some time may be couple of days.

Thanks,
Angrez

2010/8/24 Željko Filipin <zeljko....@wa-research.ch>

--
Before posting, please read http://watir.com/support. In short: search before you ask, be nice.
 
You received this message because you are subscribed to http://groups.google.com/group/watir-general
To post: watir-...@googlegroups.com
To unsubscribe: watir-genera...@googlegroups.com

Yuping Zhong

unread,
Aug 24, 2010, 10:08:54 PM8/24/10
to watir-...@googlegroups.com
Cool,good luck.

Angrez Singh

unread,
Aug 25, 2010, 8:58:48 AM8/25/10
to watir-...@googlegroups.com
Tried compiling it got the following error not sure how to resolve it. Any help will be appreciated.
https://bugzilla.mozilla.org/show_bug.cgi?id=586869
http://stackoverflow.com/questions/3496925/firefox-jssh-build

- Angrez

Željko Filipin

unread,
Aug 25, 2010, 9:13:15 AM8/25/10
to watir-...@googlegroups.com
2010/8/25 Angrez Singh <ang...@gmail.com>

> Tried compiling it got the following error not sure how to resolve it.

Looks like jssh finally died. "...it's not something we care about" (https://bugzilla.mozilla.org/show_bug.cgi?id=586869#c3)

Željko

Angrez Singh

unread,
Aug 25, 2010, 9:49:09 AM8/25/10
to watir-...@googlegroups.com
Yeah looks like ... lets keep our fingers crossed and hope for the best :). Need to find other way to interact with Firefox.
- Angrez

Željko Filipin

unread,
Aug 25, 2010, 10:03:40 AM8/25/10
to watir-...@googlegroups.com
On Wed, Aug 25, 2010 at 3:49 PM, Angrez Singh <ang...@gmail.com> wrote:
> Need to find other way to interact with Firefox.

Webdriver?

http://zeljkofilipin.com/2010/01/12/watir-on-webdriver/

Željko

Ethan

unread,
Aug 25, 2010, 12:30:32 PM8/25/10
to watir-...@googlegroups.com
There are a number of other plugins which do basically the same thing a jssh, which I found researching alternatives. I never got around to doing anything with any of them, but I think it's a good time for jssh to die, compiling it for every version on every platform is a huge pain. 



Željko

--

Željko Filipin

unread,
Aug 26, 2010, 4:41:37 AM8/26/10
to watir-...@googlegroups.com
2010/8/25 Ethan <note...@gmail.com>

> I think it's a good time for jssh to die

+1

Željko

Angrez Singh

unread,
Aug 26, 2010, 8:23:01 AM8/26/10
to watir-...@googlegroups.com
> I think it's a good time for jssh to die
 
+1 

I'll try other alternatives.

Charley Baker

unread,
Aug 26, 2010, 9:58:54 AM8/26/10
to watir-...@googlegroups.com
+1, this is exactly why we ended up getting involved in the webdriver project. It's a chore to compile the extension for all available platforms. In checking the alternatives, some of which Ethan mentioned, webdriver seemed the most reasonable approach.  

Super Kevy

unread,
Aug 26, 2010, 4:13:04 PM8/26/10
to Watir General
OK assuming JSSH getting depreciated. I'll need to review webdriver
can you link me to that information.
I assume the site will have some simple examples for launching each
browser

Yes when JSSH fails its kind of a pain or just plain computer magic to
get it working again.

Željko Filipin

unread,
Aug 27, 2010, 4:24:54 AM8/27/10
to watir-...@googlegroups.com
On Thu, Aug 26, 2010 at 10:13 PM, Super Kevy <kpe...@scholarshipamerica.org> wrote:
> I'll need to review webdriver
> can you link me to that information.

http://github.com/jarib/watir-webdriver
http://zeljkofilipin.com/2010/01/12/watir-on-webdriver/

Željko

Super Kevy

unread,
Aug 27, 2010, 1:56:20 PM8/27/10
to Watir General
Followed the links:
http://github.com/jarib/watir-webdriver
http://zeljkofilipin.com/2010/01/12/watir-on-webdriver/

Test the install notes on http://zeljkofilipin.com/2010/01/12/watir-on-webdriver/

Win2k Install:
1. Did gem install watir-webdriver.
Returns:
ERROR: Error installing watir-webdriver:
ffi requires rake <>=0.0.7, runtime>

2. Fix attempt
gem install rake
gem install watir-webdriver
Returns:
ERROR: Error installing watir-webdriver:
ffi requires rake <>=0.0.7, runtime>

About:
Ruby Verison: 1.8.6
Watir Version: 1.6.5
OS: W2K
Browsers: IE6, FF 3.5.7

Felipe Knorr Kuhn

unread,
Aug 27, 2010, 2:01:47 PM8/27/10
to watir-...@googlegroups.com
did you try updating rubygems and the installed gems?

gem update --system
gem update

Super Kevy

unread,
Aug 27, 2010, 3:55:29 PM8/27/10
to Watir General
Follow up: Still occurs...

STEP 1
C:\>gem update --system
Updating RubyGems
Nothing to update

STEP 2
C:\>gem update
Updating installed gems
Updating cucumber

(::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)
(::)

(::) U P G R A D I N G (::)

Thank you for installing cucumber-0.8.5.
Please be sure to read http://wiki.github.com/aslakhellesoy/cucumber/upgrading
for important information about this release. Happy cuking!

(::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)
(::)

Successfully installed gherkin-2.1.5-x86-mswin32
Successfully installed cucumber-0.8.5
Updating fxruby
Building native extensions. This could take a while...
ERROR: Error installing fxruby:
ERROR: Failed to build gem native extension.

c:/ruby/bin/ruby.exe extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--srcdir=.
--curdir
--ruby=c:/ruby/bin/ruby
--with-fox-dir
--without-fox-dir
--with-fox-include
--without-fox-include=${fox-dir}/include
--with-fox-lib
--without-fox-lib=${fox-dir}/lib
--with-fxscintilla-dir
--without-fxscintilla-dir
--with-fxscintilla-include
--without-fxscintilla-include=${fxscintilla-dir}/include
--with-fxscintilla-lib
--without-fxscintilla-lib=${fxscintilla-dir}/lib
extconf.rb:31:in `find_installed_fox_version': couldn't find FOX
header files (R
untimeError)
from extconf.rb:125


Gem files will remain installed in c:/ruby/lib/ruby/gems/1.8/gems/
fxruby-1.6.20
for inspection.
Results logged to c:/ruby/lib/ruby/gems/1.8/gems/fxruby-1.6.20/ext/
fox16/gem_mak
e.out
Updating hoe
ERROR: Error installing hoe:
hoe requires rake (>= 0.8.7, runtime)
Updating log4r
Successfully installed log4r-1.1.8
Updating nokogiri
Successfully installed nokogiri-1.4.3.1-x86-mswin32
Updating rake
Successfully installed json_pure-1.2.0
Updating treetop
Successfully installed treetop-1.4.8
Updating win32-dir
Successfully installed win32-dir-0.3.7
Updating win32-file
Successfully installed win32-file-0.6.5
Gems updated: gherkin, cucumber, json_pure, log4r, nokogiri,
json_pure, treetop,
win32-dir, win32-file
Installing ri documentation for gherkin-2.1.5-x86-mswin32...
Installing ri documentation for cucumber-0.8.5...
Installing ri documentation for json_pure-1.2.0...
Installing ri documentation for log4r-1.1.8...
Couldn't find file to include: '../rdoc/log4jxmlformatter'
Installing ri documentation for nokogiri-1.4.3.1-x86-mswin32...

No definition for parse_memory

No definition for parse_file

No definition for parse_with

No definition for get_options

No definition for set_options
Installing ri documentation for json_pure-1.2.0...
Installing ri documentation for treetop-1.4.8...
Installing ri documentation for win32-dir-0.3.7...
Installing ri documentation for win32-file-0.6.5...
Installing RDoc documentation for gherkin-2.1.5-x86-mswin32...
Installing RDoc documentation for cucumber-0.8.5...
Installing RDoc documentation for json_pure-1.2.0...
Installing RDoc documentation for log4r-1.1.8...
Couldn't find file to include: '../rdoc/log4jxmlformatter'
Installing RDoc documentation for nokogiri-1.4.3.1-x86-mswin32...

No definition for parse_memory

No definition for parse_file

No definition for parse_with

No definition for get_options

No definition for set_options
Installing RDoc documentation for json_pure-1.2.0...
Installing RDoc documentation for treetop-1.4.8...
Installing RDoc documentation for win32-dir-0.3.7...
Installing RDoc documentation for win32-file-0.6.5...


STEP 3

Željko Filipin

unread,
Aug 30, 2010, 8:55:44 AM8/30/10
to watir-...@googlegroups.com
On Fri, Aug 27, 2010 at 7:56 PM, Super Kevy <kpe...@scholarshipamerica.org> wrote:
> Win2k Install:

I do not have Windows 2000, but I just tried installing Ruby and watir-webdriver on fully patched Windows XP machine (Professional, Version 2002, Service Pack 3), and it just worked.

Do you have DevKit (http://rubyinstaller.org/downloads/) installed?

What I did:

- downloaded Ruby 1.8.6-p398 http://rubyinstaller.org/downloads/ (since you have Ruby 1.8.6)
- installed (make sure you check both "add ruby to path" and "associate .rb files with this Ruby" options checked)

>ruby -v
ruby 1.8.6 (2010-02-04 patchlevel 398) [i386-mingw32]

>gem -v
1.3.7

>gem install watir-webdriver
Successfully installed json_pure-1.4.6
Successfully installed rubyzip-0.9.4
Successfully installed rake-0.8.7
Successfully installed ffi-0.6.3-x86-mingw32
Successfully installed selenium-webdriver-0.0.28
Successfully installed watir-webdriver-0.0.7
6 gems installed
Installing ri documentation for json_pure-1.4.6...
Installing ri documentation for rubyzip-0.9.4...
Installing ri documentation for rake-0.8.7...
Installing ri documentation for ffi-0.6.3-x86-mingw32...
Installing ri documentation for selenium-webdriver-0.0.28...
Installing ri documentation for watir-webdriver-0.0.7...
Installing RDoc documentation for json_pure-1.4.6...
Installing RDoc documentation for rubyzip-0.9.4...
Installing RDoc documentation for rake-0.8.7...
Installing RDoc documentation for ffi-0.6.3-x86-mingw32...
Installing RDoc documentation for selenium-webdriver-0.0.28...
Installing RDoc documentation for watir-webdriver-0.0.7...

>irb
> require "rubygems"
=> true
> require "watir-webdriver"
=> true
> browser = Watir::Browser.new :ie
=> #<Watir::Browser:0x33f9e28 url="" title="">

Željko

Super Kevy

unread,
Aug 31, 2010, 12:05:32 PM8/31/10
to Watir General
Win2k partial resolution (reproduced hopefully without typo's)
The problem appeared to be in the rake gem remote install and ffi

1. Run Cleanup and Update
> gem cleanup
> gem update --system

2. Manually download rake-0.8.7.gem to the local machine and install
> gem install rake-0.8.7.gem
- 1 gem successfully installed
3. Manually download ffi-0.6.3.gem and try to install it (it failed)
> gem install ffi-0.6.3.gem
- Error: Failed to build gem native extension
- nmake is not recogized.....
- gem files will remain installed in c:/ruby/lib........
4. Install the webdriver
> gem install watir-webdriver
- 3 gems installed

5. Test it: in firefox -- works
require "rubygems"
require "watir-webdriver"
browser=Watir::Browser.new(:firefox)
browser.goto("http://www.google.com")
sleep 3
browser.close

6. Test it in IE6 - Fail
require "rubygems"
require "watir-webdriver"
browser=Watir::Browser.new(:ie)
browser.goto("http://www.google.com")
sleep 3
browser.close

Errors are thrown about ffi-0.6.3
> nmake is not recogized as an internal or external command,
operable program or batch file.

> downloaded nmake from Microsoft and installed but I'm still
having problems with ffi. building
I'll research a little more and update the thread when I get full
success or NOT

Now for the fun, knowing the ffi error issue exists
7. Test in FF round 2 - Pass
require "rubygems"
require "watir"
Watir::Browser.default = 'firefox'
browser = Watir::Browser.new
browser.goto("http://www.google.com")
sleep 3
browser.close

8. Test in IE6 round 2 - Pass
require "rubygems"
require "watir"
Watir::Browser.default = 'ie'
browser = Watir::Browser.new
browser.goto("http://www.google.com")
sleep 3
browser.close


At least I have a method to run both without JSSH

Željko Filipin

unread,
Sep 1, 2010, 3:06:19 AM9/1/10
to watir-...@googlegroups.com
Hi,

Comments are inline.


On Tue, Aug 31, 2010 at 6:05 PM, Super Kevy <kpe...@scholarshipamerica.org> wrote:
>       -  Error: Failed to build gem native extension

Do you have devkit installed? I am not sure it is supported on windows 2000.

> 4. Install the webdriver

> 5. Test it: in firefox -- works
> 6. Test it in IE6 - Fail
> 7.  Test in FF round 2 - Pass
> 8.  Test in IE6 round 2 - Pass

So, webdriver gem can drive firefox but not IE, and watir/firewatir gem can drive both firefox and IE?

Željko

Super Kevy

unread,
Sep 1, 2010, 10:29:11 AM9/1/10
to Watir General
> So, webdriver gem can drive firefox but not IE, and watir/firewatir gem can
> drive both firefox and IE?
>
> Željko

Yes that is correct.

Webkit requirements says XP OS, but I went ahead and did fresh
installs of ruby/watir/webdriver and devkit in the W2k system and
retested. Here's a thread.... showing the devkit install and
subsequent launch of ie6 using watir-webdriver.

DEVKIT INSTALL version DevKit-4.5.0-20100819-1536-sfx.exe
--------------------------------------------------
C:\>cd devkit

C:\devkit>dir/w
Volume in drive C has no label.
Volume Serial Number is B89D-5592

Directory of C:\devkit

[.] [..] [bin] devkitvars.bat
dk.rb [etc] [include] [lib]
m.ico [mingw] msys.bat msys.ico
perllocal.pod [postinstall] [sbin] [share]
6 File(s) 58,004 bytes
10 Dir(s) 7,695,446,016 bytes free

C:\devkit>ruby dk.rb

Configures an MSYS/MinGW based Development Kit (DevKit) for
each of the Ruby installations on your Windows system. The
DevKit enables you to build many of the available native
C-based RubyGems that don't yet have a binary gem.

Usage: ruby dk.rb COMMAND

where COMMAND is one of:

init prepare DevKit for installation
review review DevKit install plan
install install required DevKit executables


C:\devkit>ruby dk.rb init
[INFO] found RubyInstaller v1.8.7 at C:/Ruby

Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.

C:\devkit>ruby dk.rb review
Based upon the settings in the 'config.yml' file generated
from running 'ruby dk.rb init' and any of your customizations,
DevKit functionality will be injected into the following Rubies
when you run 'ruby dk.rb install'.

C:/Ruby

C:\devkit>ruby dk.rb install
[INFO] Installing C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/defaults/
operating_sys
tem.rb
[INFO] Installing C:/Ruby/lib/ruby/site_ruby/devkit.rb

C:\devkit>gem install rdiscount --platform=ruby
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Successfully installed rdiscount-1.6.5
1 gem installed
Installing ri documentation for rdiscount-1.6.5...
Installing RDoc documentation for rdiscount-1.6.5...

C:\devkit>ruby -rubygems -e "require 'rdiscount'; puts
RDiscount.new('**Hello Ru
byInstaller**').to_html"
<p><strong>Hello RubyInstaller</strong></p>

C:\devkit>dir *.bat
Volume in drive C has no label.
Volume Serial Number is B89D-5592

Directory of C:\devkit

08/19/2010 02:36p 288 devkitvars.bat
11/22/2009 04:13p 7,250 msys.bat
2 File(s) 7,538 bytes
0 Dir(s) 7,694,725,120 bytes free

C:\devkit>devkitvars.bat
Adding the DevKit to PATH...

C:\devkit>path
PATH=C:\devkit\bin;C:\devkit\mingw\bin;C:\Ruby\bin;C:\WINNT\system32;C:
\WINNT;C:
\WINNT\System32\Wbem

C:\devkit>


WATIR-WEBDRIVER TEST
--------------------------------------------------
1. FireFox - WORKS
require "rubygems"
require "watir-webdriver"
browser = Watir::Browser.new(:firefox)
browser.goto('http://www.google.com')
sleep 3
browser.close

2. IE6 - FAILS
require "rubygems"
require "watir-webdriver"
browser = Watir::Browser.new(:ie)
browser.goto('http://www.google.com')
sleep 3
browser.close


IE6 Popup
ruby.exe - Entry Point Not Found
The procedure entry point GetModuleHandleExW could not be located in
dynamic link library KERNEL32.dll

C:/Ruby/lib/ruby/gems/1.8/gems/ffi-0.6.3-x86-mingw32/lib/ffi/
library.rb:61:in `ffi_lib': Could not open library 'C:/Ruby/lib/ruby/
gems/1.8/gems/selenium-webdriver-0.0.28/lib/selenium/webdriver/ie/
native/win32/InternetExplorerDriver.dll': The specified procedure
could not be found.
(LoadError)
from C:/Ruby/lib/ruby/gems/1.8/gems/ffi-0.6.3-x86-mingw32/lib/ffi/
library.rb:43:in `map'
from C:/Ruby/lib/ruby/gems/1.8/gems/ffi-0.6.3-x86-mingw32/lib/ffi/
library.rb:43:in `ffi_lib'
from C:/Ruby/lib/ruby/gems/1.8/gems/selenium-webdriver-0.0.28/lib/
selenium/webdriver/ie/lib.rb:15
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from C:/Ruby/lib/ruby/gems/1.8/gems/selenium-webdriver-0.0.28/lib/
selenium/webdriver/ie.rb:16
from C:/Ruby/lib/ruby/gems/1.8/gems/selenium-webdriver-0.0.28/lib/
selenium/webdriver/driver.rb:40:in `for'
from C:/Ruby/lib/ruby/gems/1.8/gems/selenium-webdriver-0.0.28/lib/
selenium/webdriver.rb:73:in `for'
from C:/Ruby/lib/ruby/gems/1.8/gems/watir-webdriver-0.0.8/lib/watir-
webdriver/browser.rb:34:in `initialize'
from klp2.rb:5:in `new'
from klp2.rb:5
>Exit code: 1

3. Considering the ancient OS its understandable. I dont recall if
selenium every supported W2K.

- Best Regards :)





al3kc

unread,
Sep 10, 2010, 5:11:53 AM9/10/10
to Watir General
So watir-webdriver will be final solution to support FF4.0?

Željko Filipin

unread,
Sep 10, 2010, 7:20:25 AM9/10/10
to watir-...@googlegroups.com
On Fri, Sep 10, 2010 at 11:11 AM, al3kc <aleks.kiev.ua@gmail.com> wrote:
> So watir-webdriver will be final solution to support FF4.0?

As far as I understood it, yes.

Željko
Reply all
Reply to author
Forward
0 new messages