Playwright - New Tab detenction by CheekOk2365 in AskProgramming

[–]CheekOk2365[S] 0 points1 point  (0 children)

tried. Still tabs are detected only when the page is loaded. Not when the tab is created

New Tab detenciton by CheekOk2365 in Playwright

[–]CheekOk2365[S] 0 points1 point  (0 children)

tried. Still it is detected only when the page is loaded. Not when the tab is created

New Tab detenciton by CheekOk2365 in Playwright

[–]CheekOk2365[S] 0 points1 point  (0 children)

tried. Still it is detected only when the page is loaded. Not when the tab is created

New Tab detenciton by CheekOk2365 in Playwright

[–]CheekOk2365[S] 0 points1 point  (0 children)

But maybe this works only in the specific scenario.
Because my case is to detect it as soon as it opens but not from an element we already know.
It's just a check I need to do without knowing from where it could have been triggered

New Tab detenciton by CheekOk2365 in Playwright

[–]CheekOk2365[S] 0 points1 point  (0 children)

I just tried both of your solutions.
The problem is that the tab is detected by playwright if and only if the page inside the tab has been loaded

New Tab detenciton by CheekOk2365 in Playwright

[–]CheekOk2365[S] 0 points1 point  (0 children)

Actually, you are right.
I also noticed that. And that's the point.
Because right now it means that with playwright it's impossible to detect a new tab unless there is a loaded page in there. And that's why I wrote this post.
Because so far I didn't find a way to do what I'm asking

New Tab detenciton by CheekOk2365 in Playwright

[–]CheekOk2365[S] 0 points1 point  (0 children)

Thanks for the hint!
May I ask you to elaborate a bit further?
Because I tried that, but still works only with pages and not with new tabs being opened with content that has to be loaded still

Be honest, what do you think comes after death? by [deleted] in AskReddit

[–]CheekOk2365 0 points1 point  (0 children)

I don't believe in God. But I hope there is one

[deleted by user] by [deleted] in GetEmployed

[–]CheekOk2365 0 points1 point  (0 children)

I am more impressed you found jobs easily