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

Support focussing new tab #100

Closed
ebebbington opened this issue Dec 21, 2021 · 1 comment · Fixed by #103
Closed

Support focussing new tab #100

ebebbington opened this issue Dec 21, 2021 · 1 comment · Fixed by #103

Comments

@ebebbington
Copy link
Member

Use case: user clicks a button or link and it opens a new tab, they need to get info from that tab, then come back to the main page

How: Need to change the click logic:

await send('Input.dispatchMouseEvent', {
      type: 'mouseReleased',
      "middle",
      x,
      y,
      modifiers: 0,
      clickCount: 1,
    });

Then get them to grab the new page:

const page2 = browser.pages()[1]
page2.something()
page1.doUsualStuff()
@ebebbington
Copy link
Member Author

will be closed by #103

@ebebbington ebebbington linked a pull request Jan 22, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant