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.

Hi,

Please give us more details about the issue. A working script would help.

Thanks.

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()