You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Capybara 0.3.6 running the above script yields this error when the last line is run:
/Library/Ruby/Gems/1.8/gems/capybara-0.3.6/lib/capybara/session.rb:84:in `select': stack level too deep (SystemStackError)
from /Library/Ruby/Gems/1.8/gems/capybara-0.3.6/lib/capybara/dsl.rb:55:in `select'
from /Library/Ruby/Gems/1.8/gems/capybara-0.3.6/lib/capybara/session.rb:85:in `select'
from /Library/Ruby/Gems/1.8/gems/capybara-0.3.6/lib/capybara/dsl.rb:55:in `select'
from /Library/Ruby/Gems/1.8/gems/capybara-0.3.6/lib/capybara/session.rb:85:in `select'
from /Library/Ruby/Gems/1.8/gems/capybara-0.3.6/lib/capybara/dsl.rb:55:in `select'
from /Library/Ruby/Gems/1.8/gems/capybara-0.3.6/lib/capybara/session.rb:85:in `select'
from /Library/Ruby/Gems/1.8/gems/capybara-0.3.6/lib/capybara/dsl.rb:55:in `select'
from /Library/Ruby/Gems/1.8/gems/capybara-0.3.6/lib/capybara/session.rb:85:in `select'
... 2176 levels...
from /Library/Ruby/Gems/1.8/gems/capybara-0.3.6/lib/capybara/dsl.rb:55:in `select'
from /Library/Ruby/Gems/1.8/gems/capybara-0.3.6/lib/capybara/session.rb:85:in `select'
from /Library/Ruby/Gems/1.8/gems/capybara-0.3.6/lib/capybara/dsl.rb:55:in `select'
from bug.rb:13
The text was updated successfully, but these errors were encountered:
I should add that you can run the script above as is, the URL exists, and points to a minimal HTML page with more or less only a label and a select tag.
It's generally not a good idea to include things in the global object. I did this in the README as an example, which probably wasn't so smart. The README has been changed.
That explains it. However, I see nothing wrong with including things in the global scope in a simple script like the one above, especially when using a DSL.
lockbot
locked and limited conversation to collaborators
Aug 18, 2019
This issue was closed.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
With Capybara 0.3.6 running the above script yields this error when the last line is run:
The text was updated successfully, but these errors were encountered: