Browser automation question

Hi,
I opened a browser application with use browser. Then I click on a button in the page. It opens a tab. I need to work in this tab.

When I open this tab, URL gets an additional values with ?key1=value1 etc.

I am not able to click any element in this tab. I can identify these elements. But when the bot runs, it says elelment not found. Can you help please?

Thank you,

HI,

For now, can you check if your windows selector (such as title) is same as the target tab?

Or if there are tabs which have same title etc. , it may be necessary to review window selector.

Regards,

Hi

Try using wildcards in selectors.

For example:

https://forum.uipath.com*
https://forum.uipath.com?key1=*

Hi @A_Learner

After the Click activity which is opening a new tab, insert another Use application\browser activity and indicate the newly opened tab.

Change the Properties and Selectors of Use application\browser as below,
β†’ Go to Properties and select the Never option for the Open dropdown.
β†’ Select the If opened by browser option for the Close dropdown.
β†’ Remove the URL which is generated and make it empty (It will not show any error).
β†’ Go to selectors and find the title attribute, change the value of Title attribute with wildcard(*)

By following the above steps, it works fine if the URL or selectors are keep changing every time.

Hope it helps!!

Thank you.

Another problem is that when I send the output element of the second tab to another workflow, if I use wild card for the URL, it throwing 404 not found error.

Thank you,

They have the same windows selector.

Thank you @Yoichi

When I insert a new use application\browser and indicate on the tab, it is getting URL which is very long. If I use a star, when I open in a new workflow using the output element, it is giving 404 errro not found.

Main workflow, tab2 - use application browser - indicate browser - giving me url -
In the URL if I use wildcard, and use output element for the use application \browser, this output element in workflow 2 used as input element for its use\application browser throwing 404 not found error.

thank you

If you are passing the Output element of the click activity to the Input element of the Use application\browser activity. Then it will not take the URL.

Just create a variable to the Output Element option in the properties of click activity then give the same variable to the Input Element of the Use application\browser.

Just this approach and let us know weather it’s working or not… @A_Learner

Hope it helps!!

Can you try to modify window selector to have it unique attribute which can be distinguish each tab.

If the above is difficult, can you try as the following?

Set SingleWindow at WindowAttachMode in UseBrowser activity.

Add UseBrowser activity with SingleWindow settings after new tab appears.

Regards,

1 Like

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