I went through many relevant posts that are quite similar, but I still can’t seem to solve this issue. I’m fairly new to UiPath, so please bear with me.
Among other things, my StudioX project is supposed to open Google Chrome, navigate to a page, click each link on the page to open it in a new tab, click a button in the new tab to reveal certain text, extract the text, then close the new tab.
My problem is that the program goes to the newly opened tab successfully, and the button is visible, but the following error occurs: “Activity Click ‘About’ (N Click) failed: Could not find the user-interface (UI) element for this action.”
Here’s how I’m doing it:
A ‘Use Application/Browser’ activity opens a page in a new tab (tab 1) with the following properties:
Within the ‘Use Application/Browser’ activity, a ‘Click’ activity with the following properties opens a second page in a new tab (tab 2):
Options → Activate: True
Options → Key modifiers: NKeyModifiers.Ctrl
Within the ‘Use Application/Browser’ activity, a 2nd ‘Use Application/Browser’ activity uses the ‘Click’ activity’s output element as input element with the following properties:
Within the nested ‘Use Application/Browser’ activity, a ‘Keyboard Shortcuts’ activity with ‘Ctrl+2’ combination goes to tab 2
Within the 2nd (nested) ‘Use Application/Browser’ activity, a ‘Click’ activity with the following properties clicks an element to reveal the text I need to extract:
Thank you for your reply. Do you mean that I should make the tab’s title dynamic in the ‘Window selector’ property of the ‘Click’ activity? If so, how do I do that if I only know parts of the dynamic text?
I’m not sure if the following helps:
The new tab’s title (1) always begins with a sub-string that I extract from the first tab and (2) always ends with “LinkedIn”
It will only work for the ‘Digital Innovation Srl’ webpage on LinkedIn. If you want to work with multiple webpages with the same structure, you need to make the title dyanamic to adapt to the run-time changes i.e. add wildcards to the title.
This will fit to any page with the above selector structure. If you are crawling over all LinkedIn, then my it more dynamic by keeping only ‘*LinkedIn’ in the selector.
Also, in the above UiPath Forum Selector, I suppose you are trying to crawl on Help Button, so the selector should have title as ‘*Help/StudioX - UiPath Community Forum’ and it should also mention the element details for the button you want to click - something like:
This is incorrect. It’s the UI element you clicked that ends up in that variable. What you need to do for the 2nd Use Application/Browser is attach to the new window/tab using selectors, not an input element.