JsshSocket::JSTypeError: getWindows()[-1] is undefined
-------------------------------------------------------
Key: WTR-476
URL: http://jira.openqa.org/browse/WTR-476
Project: Watir
Issue Type: Bug
Components: FireWatir
Affects Versions: 1.8.0
Environment: Windows 7, ruby 1.8.7 (2011-02-18 patchlevel 334),
firewatir 1.8.1
Reporter: Richard Sinclair
Priority: Critical
Fix For: Soon
>From what I can see in the behaviour it looks like jssh in the firefox
>instance isn't fully up and running by the time an attempt is made to
>set_browser_document. Almost as if its too quick for itself.
>From what I can see there isn't a check for jssh in Windows to check that jssh
>is present to communicate with before attempting to communicate through the
>jssh socket.
This problem only occurs the first or second time I run a test but I need to to
run every time I run a test or this issue will dent my automation effort.
===============================================================================================================
>> browser = FireWatir::Firefox.new
browser = FireWatir::Firefox.new
JsshSocket::JSTypeError: getWindows()[-1] is undefined
from
C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.8.1/lib/firewatir/jssh_socket.rb:19:in
`js_eval'
from
C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.8.1/lib/firewatir/firefox.rb:86:in
`get_window_number'
from
C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.8.1/lib/firewatir/firefox.rb:44:in
`initialize'
from (irb):3:in `new'
from (irb):3
>>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development