Coder Social home page Coder Social logo

yuki24 / capybara-shadowdom Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 0.0 29 KB

Shadow DOM support for Capybara

License: MIT License

Ruby 69.94% Shell 0.96% HTML 29.10%
capybara custom-elements minitest rails rspec ruby ruby-on-rails shadow-dom testing web-components

capybara-shadowdom's People

Contributors

boris-petrov avatar yuki24 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

capybara-shadowdom's Issues

Rspec errors when trying to click_button

I've set up the gem and am able to asset_text within the shadow_root block, but when I try to click_button or even fill_in I get this error:

 Ferrum::JavaScriptError:
   DOMException: Failed to execute 'evaluate' on 'Document': The node provided is '#document-fragment', which is not a valid context node type.
       at Cuprite.find (<anonymous>:22:30)

Is it possible that there is missing cuprite support? I'm using cuprite v0.14.3.

Error with Capybara 3.37.1

We have a couple of Rails system tests that rely on capybara-shadowdom. In an attempt to fix an unrelated issue, we upgraded from capybara 3.36.0 to 3.37.1. Doing so caused the shadowdom tests to fail.

An example of the usage:

within(page.find("foo").shadow_root) do
  expect(page).to have_selector(".bar")
end

This works with 3.36.0. On 3.37.1, the following error results:

Capybara::NotSupportedByDriverError: Capybara::Driver::Node#shadow_root

We are using cuprite 0.13 with chromium.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.