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

Using magic_test with iframes on Cuprite #63

Open
rubendinho opened this issue Jun 22, 2022 · 1 comment
Open

Using magic_test with iframes on Cuprite #63

rubendinho opened this issue Jun 22, 2022 · 1 comment

Comments

@rubendinho
Copy link
Contributor

When I try to run a debug session with magic test, I get this error when trying to run any Capybara functions inside the context of an iframe.

Ferrum::NoExecutionContextError: There's no context available
from /Users/ruben/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/ferrum-0.11/lib/ferrum/frame.rb:52:in `execution_id'
within_iframe id: 'my-iframe-id' do 
  # do anything
end

This error does not occur outside of magic test session. I've configured my driver per the instructions in the wiki and #11

Are there any known issues with this?

@rubendinho
Copy link
Contributor Author

rubendinho commented Jun 22, 2022

Update: This is not an issue with magic_test per se, but with trying to run Cuprite in headless mode, which, from my understanding, is the correct way to use Magic Test with any driver.

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