How to use applicaiton browser activity?

my UiPath workflow is opening the another tab in the same window and that is a separate portal, some time this portal is opening in a separate window too in this case how can i handle the scrapping in this window and after completeing the scrapping my workflow flow shoudl logout from the portal and come back to the previous window. how to achive this? can anyone help towards this?

@Prabhakaran_Elango

instead of clicking to open the portal…use get attribute on click element and get the url..then use a new use app/browser to open in a new window always ..this way old page is open in different window and once this portal is used we can close th window so that other window is still present

cheers

Hi, @Prabhakaran_Elango

Use Use Application/Browser as the parent scope and don’t hardcode window selectors.

Recommended approach:

Enable Open in new tab/window = False (when possible)

Use Attach Browser / Use Application with dynamic selectors

Handle both cases (tab or new window) by:

Using Check App State / Element Exists to detect the portal

Re-attaching to the active browser if it opens in a new window

Do scraping inside the attached scope
After scraping, log out from the portal

Close the child tab/window and control returns to the original window

Key point: Always re-attach to the active browser, don’t assume it opens in the same tab/window.

Hi @Prabhakaran_Elango

Use Use Application/Browser with a dynamic window attach + tab handling.

  • Wrap main portal in Use Application/Browser (indicate main window).
  • After click that opens new tab/window:
    • Add Use Application/Browser again
    • Indicate the new portal window/tab
    • OR use Attach Browser with Selector = wildcard for URL/title.
  • Do scraping inside this second Use Application/Browser.
  • After logout:
    • Use Close Tab (if same window/new tab)
    • Or Close Window (if separate window)
  • Control returns to first Use Application/Browser → continue main workflow.

Regards
Gokul

Hi @Prabhakaran_Elango

Use Use Application/Browser as the parent scope and avoid hard-coded window selectors. Always re-attach to the active browser and explicitly control window, don’t assume navigation behavior.

  • Wherever possible keep Open in new tab/window = False
  • Instead of clicking to open the portal, use Get Attribute on the click element to read the URL, then open it using a new Use Application/Browser (always in a new window)
  • This keeps the original page open in one window and the portal in another
  • Perform scraping inside the attached scope, then log out and close the portal window so control returns to the original window

Hi @Prabhakaran_Elango

  • Don’t assume tab or window
  • Click link → use Use Application/Browser or Check App State with URL/title of second portal
  • UiPath attaches whether it opens in a new tab or new window
  • Scrape inside that container
  • Logout from second portal
  • Close that tab/window
  • Workflow continues in the original window

Which attribute in get attribute activity should i use ?

@Prabhakaran_Elango

mostly it would be an A tag..so get href

cheers