[wtr-general] Re: Jssh Socket error

2011-08-09 Thread V
Any Update on this. On Jul 21, 6:33 pm, Aditya vaditya2...@gmail.com wrote: any update on this please let me know On Fri, Jul 8, 2011 at 6:20 PM, V vaditya2...@gmail.com wrote: For IE already raised a post. check this Unable to Maximize the IE 8, Received error while executing the script

[wtr-general] Re: Jssh Socket error

2011-08-09 Thread Chuck van der Linden
Any Update on this. Please better define which 'this' you are referring to. This thread has had at least like 3 different topics of discussion (issues with firewatir ruby 1.9.2, how to convert a script from Watir to Watir- Webdriver, and maximizing browsers {note: this is a great example of

[wtr-general] Re: Jssh Socket error

2011-08-09 Thread Mahi
Ok. Will have a new thread then. On Aug 9, 8:41 pm, Chuck van der Linden sqa...@gmail.com wrote: Any Update on this. Please better define which 'this' you are referring to.  This thread has had at least like 3 different topics of discussion (issues with firewatir ruby 1.9.2, how to convert

Re: [wtr-general] Re: Jssh Socket error

2011-07-21 Thread Aditya
any update on this please let me know On Fri, Jul 8, 2011 at 6:20 PM, V vaditya2...@gmail.com wrote: For IE already raised a post. check this Unable to Maximize the IE 8, Received error while executing the script So i shifted to Firefox but still i need that solution as i am planning for a

Re: [wtr-general] Re: Jssh Socket error

2011-07-08 Thread Aditya
Thanks for the information. But what about the rest i asked for? How can i maximize the browser and the rest? And Also i want to pass the browser as a parameter and at run i can verify for IE,Firefox and safari. So i planned. I worked on this earlier but now the solution is specific to fire fox.

Re: [wtr-general] Re: Jssh Socket error

2011-07-08 Thread Amit Bobade
Hi, To maximize the IE browser, try this: require 'rubygems' require 'Watir' ie = Watir::IE.new ie.goto(http://www.google.com;) ie.maximize For other browsers, I am trying to find out the solutions. Thanks, -Amit On Fri, Jul 8, 2011 at 5:24 PM, Aditya vaditya2...@gmail.com wrote:

[wtr-general] Re: Jssh Socket error

2011-07-08 Thread V
For IE already raised a post. check this Unable to Maximize the IE 8, Received error while executing the script So i shifted to Firefox but still i need that solution as i am planning for a framework . I need that. Earlier version of watir was working fine. But not in this. May be my environment

[wtr-general] Re: Jssh Socket error

2011-07-07 Thread V
Facing the same issue. Again Ruby version 1.8.7 watir 1.9.1. Windows. Facing the /Ruby187/lib/ruby/gems/1.8/gems/firewatir-1.9.1/lib/ firewatir/jssh_socket.rb:19:in `js_eval': this.docShell is null (JsshSocket::JSTypeError) issue. Please help me in this asap On Jun 27, 10:34 pm, Abe Heward

Re: [wtr-general] Re: Jssh Socket error

2011-07-07 Thread Amit Bobade
hi, I encountered this problem long before. I tried so hard to overcome this problem. The solution is - use Watir-webdriver and change your script accordingly. To install Watir-webdriver use following command: gem install watir-webdriver Let me know if any problem. Thanks, -Amit On Thu, Jul

[wtr-general] Re: Jssh Socket error

2011-07-07 Thread V
Installed Watir-Webdriver. But no use. C:\Ruby187gem install watir-webdriver Fetching: json_pure-1.5.3.gem (100%) Fetching: rubyzip-0.9.4.gem (100%) Fetching: childprocess-0.1.9.gem (100%) Fetching: selenium-webdriver-0.2.2.gem (100%) Fetching: watir-webdriver-0.2.5.gem (100%) Successfully

Re: [wtr-general] Re: Jssh Socket error

2011-07-07 Thread Amit Bobade
Hi, Have you changed scripts for watir-Webdrivers as follows? Include :- require 'rubygems' require 'Watir-webdriver' To open browser:- browser = Watir::Browser.new :ff browser.goto(URL) Try this and let me know. Thanks, Amit On Thu, Jul 7, 2011 at 6:30 PM, V vaditya2...@gmail.com wrote:

Re: [wtr-general] Re: Jssh Socket error

2011-07-07 Thread Željko Filipin
On Thu, Jul 7, 2011 at 3:00 PM, V vaditya2...@gmail.com wrote: Ruby187/lib/ruby/gems/1.8/gems/firewatir-1.9.1/lib/firewatir/ jssh_socket.rb:19:in `js_eval': this.docShell is null (JsshSocket::JSTypeError) You have installed watir-webdriver, but you are still using firewatir gem in your

[wtr-general] Re: Jssh Socket error

2011-07-07 Thread V
My code Looks like this. Let me know what to do. As getting the below error: C:/Ruby187/lib/ruby/gems/1.8/gems/commonwatir-1.9.1/lib/watir/ version.rb:3: warning: already initialized constant VERSION C:/Ruby187/lib/ruby/gems/1.8/gems/commonwatir-1.9.1/lib/watir/ exceptions.rb:12: superclass

[wtr-general] Re: Jssh Socket error

2011-07-07 Thread V
changed.. But getting this error: Bro.rb:17:in `setdefaultbrowser': undefined method `default' for Watir::Browser:Class (NoMethodError) And Also i want to pass the browser as a parameter and at run i can verify for IE,Firefox and safari. So i planned. I worked on this earlier but now the solution

Re: [wtr-general] Re: Jssh Socket error

2011-07-07 Thread Amit Bobade
Hi, Lets resolved error first. To open browser use following code: To open browser:- browser = Watir::Browser.new :ff browser.goto(URL) Try this. Thanks Amit On Thu, Jul 7, 2011 at 7:11 PM, V vaditya2...@gmail.com wrote: changed.. But getting this error: Bro.rb:17:in `setdefaultbrowser':

Re: [wtr-general] Re: Jssh Socket error

2011-07-07 Thread Željko Filipin
On Thu, Jul 7, 2011 at 3:20 PM, V vaditya2...@gmail.com wrote: exceptions.rb:12: superclass mismatch for class UnknownObjectException (TypeError) You require both watir and watir-webdriver in your script. Require only watir-webdriver. Željko -- Before posting, please read

[wtr-general] Re: Jssh Socket error

2011-07-07 Thread V
Changed as require rubygems require 'watir' require 'watir-webdriver' def defaultbrowser(br) #~ require 'watir-webdriver' Watir::Browser.default=br puts Default Browser: +Watir::Browser.default end def setdefaultbrowser(br) br=Watir::Browser.new end br= 'ie' #'safari', 'firefox', or 'ie'

[wtr-general] Re: Jssh Socket error

2011-07-07 Thread V
Adding to this how can i maximize the browser? On Jul 7, 6:58 pm, V vaditya2...@gmail.com wrote: Changed as require rubygems require 'watir' require 'watir-webdriver' def defaultbrowser(br) #~ require 'watir-webdriver'  Watir::Browser.default=br puts Default Browser:

[wtr-general] Re: Jssh Socket error

2011-07-07 Thread V
How do i maximize the FF window? I need to replace the browser every time i execute. How? browser = Watir::Browser.new :ff - Why do we need to have FF here? On Jul 7, 6:58 pm, V vaditya2...@gmail.com wrote: Changed as require rubygems require 'watir' require 'watir-webdriver' def

Re: [wtr-general] Re: Jssh Socket error

2011-07-07 Thread Amit Bobade
hi, browser = Watir::Browser.new :ff - Why do we need to have FF here? You can have :chrome and : ie also. Thanks, -Amit On Thu, Jul 7, 2011 at 7:43 PM, V vaditya2...@gmail.com wrote: How do i maximize the FF window? I need to replace the browser every time i execute. How? browser =

Re: [wtr-general] Re: Jssh Socket error

2011-06-27 Thread Abe Heward
Tried updating to Ruby 1.9.2 and Watir 1.9.0 today. Immediately ran into this same problem again when I tried to run a test script with Firefox. Firefox doesn't want to open. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

[wtr-general] Re: Jssh Socket error

2011-06-17 Thread Chuck van der Linden
On Jun 16, 2:32 am, Aditya vaditya2...@gmail.com wrote: 15 days back i invoked FF and i updated the watir version yesterday then it was not working. Does it so? How do i resolve?  So plz help me in this.  what is OP? http://lmgtfy.com/?q=what+does+OP+mean Are you using the same version

Re: [wtr-general] Re: Jssh Socket error

2011-06-16 Thread Aditya
15 days back i invoked FF and i updated the watir version yesterday then it was not working. Does it so? How do i resolve? So plz help me in this. what is OP? On Thu, Jun 16, 2011 at 2:39 AM, Chuck van der Linden sqa...@gmail.comwrote: On Jun 14, 3:02 am, V vaditya2...@gmail.com wrote: Hi

[wtr-general] Re: Jssh Socket error

2011-06-15 Thread Chuck van der Linden
On Jun 14, 3:02 am, V vaditya2...@gmail.com wrote: Hi , I am also facing the same issue.But in Windows. C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.8.1/lib/firewatir/ jssh_socket.rb:19:in `js_eval':  this.docShell is null (JsshSocket::JSTypeError)     from

[wtr-general] Re: Jssh Socket error

2011-06-14 Thread V
Hi , I am also facing the same issue.But in Windows. C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.8.1/lib/firewatir/ jssh_socket.rb:19:in `js_eval': this.docShell is null (JsshSocket::JSTypeError) from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.8.1/lib/firewatir/ firefox.rb:194:in

Re: [wtr-general] Re: Jssh Socket error

2011-05-04 Thread Abe Heward
Test script won't start Firefox. I need clarification on this, because I recently updated two machines--one Windows 7 and one XP--to Ruby 1.9.2 and Watir 1.8.1. Both machines have FF 3.6.17, with the 0.9 jssh plugin installed. Both machines, prior to the update, ran my Firefox scripts without

Re: [wtr-general] Re: Jssh Socket error

2011-05-04 Thread Abe Heward
In the interest of completeness and clarity, here's the text of the error we get: C:/Ruby192/lib/ruby/gems/1.9.1/gems/firewatir-1.8.1/lib/firewatir/firefox.rb:156:in `rescue in set_defaults': Unable to connect to machine : 127.0.0.1 on port 9997. Make sure that JSSh is properly installed and

Re: [wtr-general] Re: Jssh Socket error

2011-05-04 Thread Abe Heward
UPDATE: Reverting the machine to using Ruby 1.9.1 clears up the problem. Sad, because I was hoping to be able to continue to move to using Watir-webdriver more and more, as it matures, but Watir-webdriver has issues with Ruby 1.9.1. -- Before posting, please read http://watir.com/support. In

Re: [wtr-general] Re: Jssh Socket error

2011-05-04 Thread Charley Baker
That's strange, I don't see how 1.9.1 would fix things. I'm setting up a box now and I'll try to replicate the failure in the next day or two. Thanks for the info. Charley Baker Lead Developer, Watir, http://watir.com On Wed, May 4, 2011 at 12:40 PM, Abe Heward abe.hew...@gmail.com wrote:

[wtr-general] Re: Jssh Socket error

2011-04-21 Thread prathibha m
Ubuntu 10.10 OS. FireFox 3.6.16. On Apr 21, 11:01 am, Angrez Singh ang...@gmail.com wrote: Which OS you are using? Which Firefox version are you using? - Angrez On Wed, Apr 20, 2011 at 6:01 PM, prathibha m prathibha.a...@gmail.comwrote: I installed ruby 1.8.7 version and gems

Re: [wtr-general] Re: Jssh Socket error

2011-04-21 Thread Angrez Singh
As per what I know you have to start firefox first with -jssh option and then run the test script. Test script won't start Firefox. Every time you have to run a script you have to first start Firefox with -jssh option - Angrez On Thu, Apr 21, 2011 at 1:37 PM, prathibha m