Get Url return URL on new tab

Hi, I want to ask, when using getUrl function it’s always return the URL of the first tab, instead I want it to return the URL of the second tab, is there a better way to getUrl of the second tab? here is the screenshot of my test


1 Like

under the assumption that step 9, clicking the ‘view linkedin profile’ button, opens a new tab, then you will first need to switch to the new tab before getUrl will return the url for that tab


wow thanks it’s worked :slight_smile:

Thank you so much for your quick support. Love the way you guys support each other!