Tengo un problema en una automatizacion web. Entro en una pagina, busco informacion y al haccer click en un boton de buscar se abre una nueva pestaña de chrome, en la que deseo seguir interactuando. El problema es que no sé como configurar un nuevo “utilizar navegador” (que es la forma en la que configuro clicks en nuevas pestañas) porque cada vez que se abre esa pestaña el link es distinto. Claramente una parte es la misma, pero el final son caracteres aleatorios que cambian cada vez. Cómo puedo hacer para determinar que el robot interactue con la nueva pestaña que se abre?
Hi @Fine_Basil
Use the “Attach Browser” or “Use Application/Browser” activity with a dynamic selector. Replace the changing part of the URL with a wildcard (*). Alternatively, retrieve the new tab dynamically using the “Browser.Opened” property. Adding a short delay before attaching to the new tab can also help ensure it fully loads before interaction.
If you found helpful mark as a solution. Thanks
Capture the new tab using Attach Browser activity and continue the automation. If you want to go back to previous tab - Again use attach browser
@Fine_Basil
URL is not a mandatory field in Use Application browser activity.
Just highlight that newly opened tab and remove the Url.
Modify the selectors to remove dynamic values.
Te adjunto imagen de como quedó, pero sigue fallando. Cometi algun error respecto a lo que me indicaste? Luego del click “VER” es cuando se abre la nueva pestaña, puse un delay, y ahi el nuevo “usar navegador” con el link con un * al final, en la parte que varía. El click para descargar es el que no encuentra, ya que no esta tomando la nueva pestaña que se abrió.
Hi @Fine_Basil
Use the Use application/browser activity and indicate the new tab which is opening after click on search. Then Open the properties of use application/browser activity and change options as below
→ Open - Never
→ Close - Always
→ Remove the URL
→ Open selectors and give wildcards if any dynamic selector appears.
That’s it inside this Use application/browser activity insert the UI activities to work on the new tab. It will work.
Happy Automation!!
is it failing in the click or use ap/browser?what error are you getting
also you can place use app/browser outside the other use app/browser activity
cheers
Hice todo lo que me indicaron, poner el nuevo use browser fuera del otro, y configurar las propiedades, pero sigue dando error. Por lo que entiendo, el 86% de match es cercano pero no se como hacer para que pueda hacer el click en la nueva pestaña. adjunto error:
Go to Selector and modify accordingly
Include a start at the end of the URL
like url=‘Sign In*’
Try with these properties
Hi @Fine_Basil
Use the “Attach Browser” activity to ensure UiPath targets the correct tab. Check the selector in UI Explorer and make it dynamic by using wildcards (e.g., title=‘New Tab’). Use the “Click” activity with a stable selector to interact with the new tab. If clicking doesn’t work, try using “Send Hotkey” (CTRL + Tab) to switch tabs. Add an “Element Exists” activity to wait for the new tab to load before interacting. Finally, run and debug to verify if UiPath correctly detects and interacts with the new tab.