Rayrun
← Back to Discord Forum

How to determine the actual visible tab in a browser (preferably C#)

aad_aka_2733posted in #help-playwright
Open in Discord
aad_aka_2733
aad_aka_2733

Greetings, I am using Playwright to "automate" part of a website for users, and yes I know Playwright was not ment for that. But it works great! There is one issue I could not figure out, however.

My question is about a user opening a new tab in the browser. Is there a way to determine which of the tabs is actually selected and thus visible?

Hope to hear, Aad Slingerland

This thread is trying to answer question "Is there a way to determine which of the tabs is actually selected and thus visible in a browser using Playwright in C#?"

4 replies

sharp

As far as I know - no. From playwright's side all tabs are active.

@aad_aka_2733: you can implement your own window handler with guid

you can implement your own window handler with guid

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.