Getting text from a newly opened Chrome tab

Hi All, I’m pretty new to uipath and I’m stuck on this issue. I’m using Chrome and Studio Community.
I open a url in the browser and click on a link that opens to a different tab. I need to get information that is on that other tab. I don’t need the first tab any more.

I don’t know the URL for the new tab- it will be different every time.

I’ve seen similar questions where people recommended using Attach Browser, but I’m not seeing that as an option under activities.

I have tried:

*Switching tab with hot keys
*Closing the original tab with “navigate browser” activity
*“Get active window” activity

Any help or insight would be greatly appreciated!

1 Like

Hey @ironpainter

Once the new tab is opened, click Ctrl+w to close the current tab.

Send Hotkey

Thanks
#nK

1 Like

Hi @Nithinkrishna

That closes the tab but the program doesnt seem to be able to “see” any UI elements on the new tab. I’ve tried multiple different Ui elements with different anchors and added a delay but I’m still getting the same error message:
Click : Could not find the user-interface (UI) element for this action.

1 Like

Hey @ironpainter

Does this mean you want to perform some actions on the new tab ?

Thanks
#nK

1 Like

Yes, that’s correct. Once the new tab is opened, I no longer need the first tab and all the work will be completed on the new tab.
Unfortunately, though, the URL for the new tab will change each time so I can’t just use the URL.

1 Like

That’s not an issue, how about the title please ?

1 Like

Title?

1 Like

Sorry not sure what you mean by that

1 Like

I meant the tab title (displayed on the browser tab)

1 Like

Oh! gotcha, yes the tab title for the new tab remains the same!

1 Like

Sorry, very new to UI Path- what I’ve been using for web browsing is just: “Use Browser Chrome: New Tab.”
I’m not sure how to change the tab name.

1 Like

Okay I changed it to the correct tab name but not sure how to set the URL so it can be variable?

1 Like

You can just keep URL as empty for this scenario.

Just set the browser open and close props with value NEVER which should work fine.

Thanks
#nK

1 Like

Worked like a charm, you’re the best!! thank you so much!

1 Like

Cool @ironpainter

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.