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

Capybara::Cuprite::InvalidSelector #256

Open
momolog opened this issue Jan 26, 2024 · 0 comments
Open

Capybara::Cuprite::InvalidSelector #256

momolog opened this issue Jan 26, 2024 · 0 comments

Comments

@momolog
Copy link

momolog commented Jan 26, 2024

When I try to do

find_link 'Buchen', exact_text: true

in Capybara I get

Capybara::Cuprite::InvalidSelector: Browser raised error trying to find xpath: "(.//a[./@href][((((./@id = 'Buchen') or (normalize-space(string(.)) = 'Buchen')) or (./@title = 'Buchen')) or .//img[(./@alt = 'Buchen')])])[]"
from /Users/aljoscha/.asdf/installs/ruby/2.7.8/lib/ruby/gems/2.7.0/gems/cuprite-0.15/lib/capybara/cuprite/browser.rb:201:in `rescue in find_all'
Caused by Ferrum::JavaScriptError: Error
    at Cuprite.find (<anonymous>:34:15)
    at <anonymous>:1:31
from /Users/aljoscha/.asdf/installs/ruby/2.7.8/lib/ruby/gems/2.7.0/gems/ferrum-0.14/lib/ferrum/frame/runtime.rb:138:in `handle_error'

This seems to be a bug, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant