Getting element of a new tab

I’m trying to test clicking on a card and a new tab is open. I want to get the element inside of a new tab.


Could you please give us more details about the issue? A working script would be great.


I just don’t know how to select the element from the newly open tab. The tab is open when I call page.locator(“#id”).click()