Skip to content

Capybara::Cuprite::InvalidSelector #256

@momolog

Description

@momolog

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions