uninitialized constant Vapir::Firefox::ARBITRARY_TIMEOUT (NameError)

8 views
Skip to first unread message

nana

unread,
Dec 7, 2010, 5:46:46 PM12/7/10
to Vapir
Hi!

Can't figure out why I get this error message:

/Library/Ruby/Gems/1.8/gems/activesupport-2.3.9/lib/active_support/
dependencies.rb:131:in `const_missing': uninitialized constant
Vapir::Firefox::ARBITRARY_TIMEOUT (NameError)
from /Library/Ruby/Gems/1.8/gems/vapir-firefox-1.7.1/lib/vapir-
firefox/modal_dialog.rb:137:in `wait'


Not sure if this is a bug, or if I am doing something wrong. Basically
I tried to click a button in a modal dialog.

# BEGIN
modal = b.modal_dialog
puts modal.exists? # True
modal_doc = modal.document
login_button = modal_doc.button(:name, 'cancel')
puts login_button.exist? # True
login_button.click
# END

Pretty simple code. Do you know what is going on?

Thanks!


nana

unread,
Dec 7, 2010, 7:50:56 PM12/7/10
to Vapir
I also just want to add that even if I declare the ARBITRARY_TIMEOUT
variable manually, I get another error:

/Library/Ruby/Gems/1.8/gems/vapir-firefox-1.7.1/lib/vapir-firefox/
jssh_socket.rb:643:in `val_or_object': undefined expression
JsshTemp["9248ni"].webProgress (JsshUndefinedValueError)
from /Library/Ruby/Gems/1.8/gems/vapir-firefox-1.7.1/lib/vapir-
firefox/jssh_socket.rb:666:in `invoke'

Ethan

unread,
Dec 8, 2010, 1:05:35 PM12/8/10
to va...@googlegroups.com
Dang, somehow this slipped by. This is certainly a bug in Vapir. setting the constant to something reasonable (say, 20, is probably good) should work around that issue until I have the next version out, in which I will fix it. 

The other error, where webProgress is undefined, that is strange. 
Can you include a full backtrace of that error? 
Also, what version of firefox are you running? 

nana

unread,
Dec 8, 2010, 1:19:22 PM12/8/10
to Vapir
So here is the full stacktrace after I set the constant:

/Library/Ruby/Gems/1.8/gems/vapir-firefox-1.7.1/lib/vapir-firefox/
jssh_socket.rb:643:in `val_or_object': undefined expression
JsshTemp["o3kgf2"].webProgress (JsshUndefinedValueError)
from /Library/Ruby/Gems/1.8/gems/vapir-firefox-1.7.1/lib/vapir-
firefox/jssh_socket.rb:666:in `invoke'
from /Library/Ruby/Gems/1.8/gems/vapir-firefox-1.7.1/lib/vapir-
firefox/jssh_socket.rb:881:in `method_missing'
from /Library/Ruby/Gems/1.8/gems/vapir-firefox-1.7.1/lib/vapir-
firefox/modal_dialog.rb:138:in `wait'
from /Library/Ruby/Gems/1.8/gems/vapir-common-1.7.1/lib/vapir-common/
waiter.rb:127:in `try_for'
from /Library/Ruby/Gems/1.8/gems/vapir-firefox-1.7.1/lib/vapir-
firefox/modal_dialog.rb:137:in `wait'
from /Library/Ruby/Gems/1.8/gems/vapir-firefox-1.7.1/lib/vapir-
firefox/element.rb:211:in `wait'
from /Library/Ruby/Gems/1.8/gems/vapir-common-1.7.1/lib/vapir-common/
element.rb:88:in `submit'
from ff-vapir.rb:18

I'm running Firefox version 3.6.12. Let me know if you need any more
info!
Reply all
Reply to author
Forward
0 new messages