rubycdp / ferrum

Headless Chrome Ruby API
https://ferrum.rubycdp.com
MIT License
1.71k stars 123 forks source link

Methods select and selected raises an exception when fires within frame scope #238

Closed Mifrill closed 2 years ago

Mifrill commented 2 years ago
frame = browser.frames[1]
frame.at_xpath("//select[@name='brandSelected']").click.select("VISA", by: :text)

Actual: # Ferrum::BrowserError Exception: Argument should belong to the same JavaScript world as target object

Expected: Selects with no errors

https://github.com/rubycdp/ferrum/issues/229#issuecomment-1010965596