Target on screen's issue

I got an automation to log into a page then do some actions.
The first page is myurl/login.asp then it become myurl/page.asp.
Everything is working correctly in the login section but when I have to select where to click on the page.asp the selector works in the login page… So I can’t do nothing in the secong page.

How to fix that?

@Gabriele_Radici

  1. Dynamic Selectors:
  • Make sure your selectors use dynamic attributes common across both pages. Avoid using attributes specific to the login page.
  1. Attach Browser:
  • Wrap actions on the second page with an “Attach Browser” activity. This helps focus UiPath on a specific browser instance.
  1. Use Delay:
  • After navigating to the second page, add a “Delay” activity before interacting with elements to ensure the page is fully loaded.
  1. Element Exists:
  • Check if you are on the correct page using the “Element Exists” activity before interacting with elements. This ensures you’ve successfully navigated.

Hi @Gabriele_Radici ,

Welcome to UiPath Community!

Use Attach browser activity. like below screenshot.

image

Thanks,

Hi @Gabriele_Radici

You want to click on any element in Login page then it will redirect to another page means second page, then you need to click element on second page. The bot unable to click on the second page. If it is your query then follow the below process.

→ Use the Use application\browser activity and indicate the login page.
Change the properties like below :
Open → Always
Close → Never
Window Attach mode → Single window
→ Inside use application\browser activity insert the click activity which is clicking on element then it was redirecting to second page.
→ After click activity insert the another Use application\browser activity and indicate the second browser.
Change the properties for second Use application\browser activity as below :
Open → IfNotOpen
Close → Always
Window Attach mode → Application Instance.
→ Inside of this use application\browser insert the activities which you want to perform in the second page.

Check the below image for better understanding,

Hope it helps!!

1 Like

Thank you.
I’m new and am trying to understand your suggestions.

However, I’m struggling to grasp them. I will attach a screenshot, which might make it easier to explain.
When I log in on the first page, the application correctly appears on the second one. But if I add a click action, it redirects back to the login page. Also, if I add an activity as shown in screen 3, it still takes the login page as the selector’s page.

I’m not using that view, I’m using the web one. Should I use that?

I’ve dowloaded UiPath Studio, but I don’t have that activity/actions

Hi @Gabriele_Radici ,

Check in the Classic activity.

image

Thanks,

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