Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError when clicking a link with a protocol-less url #776

Closed
ghost opened this issue Aug 3, 2012 · 2 comments
Closed

NoMethodError when clicking a link with a protocol-less url #776

ghost opened this issue Aug 3, 2012 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented Aug 3, 2012

When the href of the link contains //www.example.com/foo, this error is raised by capybara (1.1.2):

 NoMethodError:
   undefined method `+' for nil:NilClass
 # /var/lib/gems/1.9.1/gems/capybara-1.1.2/lib/capybara/rack_test/browser.rb:49:in `process'
 # /var/lib/gems/1.9.1/gems/capybara-1.1.2/lib/capybara/rack_test/browser.rb:33:in `follow'
 # /var/lib/gems/1.9.1/gems/capybara-1.1.2/lib/capybara/rack_test/node.rb:56:in `click'
 # /var/lib/gems/1.9.1/gems/capybara-1.1.2/lib/capybara/node/element.rb:99:in `block in click'
 # /var/lib/gems/1.9.1/gems/capybara-1.1.2/lib/capybara/node/base.rb:46:in `wait_until'
 # /var/lib/gems/1.9.1/gems/capybara-1.1.2/lib/capybara/node/element.rb:99:in `click'
@mscottford
Copy link

Would you accept a pull request that ports this fix over to the 1.1_stable branch? If so, I'll get started on one.

@jnicklas
Copy link
Collaborator

Yes, this is the kind of thing that I would be okay with backporting.

mscottford pushed a commit to mscottford/capybara that referenced this issue Dec 12, 2012
jnicklas added a commit that referenced this issue Dec 26, 2012
…ive-fix

Allow protocol relative URLs, backported from #776
@lock lock bot locked and limited conversation to collaborators Aug 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants