Changing tab focus #358
Replies: 1 comment
-
It's not working because you are using wrong xpath. If you check xpath the last div[1] would be |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there.
I have this example snippet that works with 2 tabs. Indeed, it correctly recognises each tab but the visual focus doesn't change to
page_one
when going to the last url -page_one.go_to("page_one.go_to("https://github.com/rubycdp/ferrum")
. Ideally, instead of going to another url it would click on button on the current url in page-one -page_one.at_xpath("/html/body/div[1]/div[6]/div/main/turbo-frame/div/div/div/div[2]/div[1]/div[1]/a").click
- but when I try it fails, I guess because the tab doesn't have focus.What am I missing?
I also tried to change active tab with keyboard like:
browser.keyboard.down([:control, :tab])
orpage_two.keyboard.down([:control, :tab])
but nothing happensBeta Was this translation helpful? Give feedback.
All reactions