I want to open a web page in another browser tab then return back to the first page later on. How can I get this done?
hello @Martins_Micheal
If you want to work with two pages at the same time, you can attach a browser or, in modern usage, utilize two application browser activities within it. Make sure to set the property to “open browser never.” In the first activity, open the application, but closing it is not the same as working on the second activity.
Example Sequence (using “Open Browser” and “Send Hotkey”):
- Open Browser: Use the “Open Browser” activity to open a new Chrome browser session.
- Send Hotkey: Use the “Send Hotkey” activity to send “Ctrl+T” to open a new tab.
- Navigate: Use the “Navigate” activity to load the desired URL in the new tab.
- Attach Browser: Use the “Attach Browser” activity to attach to the previously/newly opened tab if you need to interact with its elements.
Hope this helps.
Regards
Sonali
Why are you recommending classic activities? It’s LONG past time you should be using modern activities.
@Martins_Micheal the correct way to do this is to use the Use Application/Browser activity with the Open property set to always and Close property set to never, to open each window. Create a variable in the “Output element” property to store the UI element of the window that opens. Use a separate variable for each window. Then whenever you want to use one of the windows, you use the Use Application/Browser activity and set its “Input element” property to the variable for the window you want it to operate in.
Thank you for recommending your approach, i appreciate it!
Kindly note the keyword “should be”. yes, its good to be using modern activities but not all of us are using modern activities, most of the projects in our org still rely heavily on classic activities.
UiPath cloud is been out for a long long time, but it is just now that we are migrating to the same.
So, I think accepting the fact that there are still many organizations/people using classic activities, would allow us to be more receptive of other people suggesting solutions not well aligned with our approach(modern).
Happy sharing!!
Regards
Sonali
You don’t need to be on cloud to use modern activities. We are still on-premise and have been using modern activities for a long time. It’s just a project setting, nothing to do with cloud.
Yes, I understand that! We have also incorporated some of our on-prem projects with modern activities.. I just used it as an example.
Thank you for sharing though ![]()