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::NotSupportedByDriverError (Capybara::Driver::Node#rect) #276

Open
Nakilon opened this issue Oct 2, 2024 · 1 comment
Open

Comments

@Nakilon
Copy link

Nakilon commented Oct 2, 2024

In autotesting at my job they use firefox/webdriver since the ice age, and I want to make us use chrome/cdp.
After writing some tests under the old framework I got used to the rect method, but I should make more tests under the new framework to make them see that all the stack became better, but I immediately stumble upon:

Capybara::NotSupportedByDriverError (Capybara::Driver::Node#rect)

Is this a cuprite's responsibility to implement this method?
What is the workaround while it's not fixed? getBoundingClientRect? Which class should I patch?

UPD: or is it only methods which throw the NotImplementedError that cuprite should define? I don't really get the difference in the capybara source code.

@4tolexx
Copy link

4tolexx commented Nov 15, 2024

Is this a cuprite's responsibility to implement this method?
What is the workaround while it's not fixed? getBoundingClientRect? Which class should I patch?

co-asking as well.

we are currently trying to migrate from selenium to cuprite and we are using this method in one of our tests

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

2 participants