How to close the browser tab from a UiPath App button?

Hi everyone,

I’m working on an App in UiPath


Studio Web
and I’ve added a button called CloseApp. The requirement is that when a user clicks this button, the browser tab where the App is running should close.

I tried using the Use Browser activity with the Close Window option inside the Main Window activity, but it doesn’t seem to work.

Has anyone implemented this before or found a workaround? I’ve already tried the activity shown in the attached image, but no luck so far.

Any guidance or suggestions would be really helpful.

Thanks in advance!

Hi @ramakarthik.grandhi,

redirect the user to a blank or “session completed” page and let the user close the tab manually. If automatic tab closing is required, it has to be handled from a desktop automation, not from a Studio Web app.

Hi @ramakarthik.grandhi
Welcome to the Community

Navigate the user to a blank page or a session finished screen and ask them to close the tab themselves. Automatic tab closure is only possible through desktop automation, not Studio Web apps.

Cheers

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