I want to open and process web pages with URLs that change each time

I’m considering using UiPath with a web application.
I’m trying to perform the following steps, but haven’t been able to get them to work.
Could you please suggest a good way to do this?

When I click a specific button in the web application, another window opens. I want to use the Use Application/Browser activity to specify that window so I can perform actions in it, but part of its URL is different each time, so it won’t open properly.
What settings should I use to make it open?

Thank you.

If you’re attaching to a window that’s already open, removing the URL-related attributes from the selector or using a wildcard for the changing part should work.

The Use Application/Browser activity indicates that the browser URL is required, but leaving it empty is fine.
In that case, set the window (or dialog) title appropriately in the selector for the unified target.
For example, specifying "<html app='chrome.exe' title='login' />" allows you to identify the Chrome browser with the title “login” as the target, even when the URL changes every time.

Thank you for your response.

I’m using wildcards in the URL and selector, but it seems I haven’t been able to get them to work properly…

Thank you for your response.

I tried setting it using only the selector without specifying a URL, but it seems that this isn’t being recognized either..

Which activities are you currently using, and which activity is producing what error?
Or is a separate new window opening? If so, I suggest first setting the open behavior to Never.

Thank you for your response.

I’ve set up the workflow as follows.
The first click opens a new window. I then use Use Application/Browser to indicate the newly opened window and configure a click action on that window.

For the open behavior, I’ve selected Never, and no other new window is opened.

[Workflow]
Click
>Use Application/Browser
>Click

[Error details]
22.10.4+Branch.support-v22.10.Sha.b4be88e3b45fb05c4bcd71885c763d4f2095f959

Source: Click ‘Group’

Message: The user interface (UI) element for this action was not found.

Possible solutions
• Ensure that the application is open at runtime and that the UI element is visible on the screen.
• Edit the target of the UI activity and use the validation feature to debug the issue.
• The properties may have changed, so re-indicate the element if necessary.
• Check the application state using the Check App State activity before performing the action.
• Increase the value of Wait Before to allow the application to finish rendering and become responsive.

Exception type: UiPath.UIAutomationNext.Exceptions.NodeNotFoundException

UiPath.UIAutomationNext.Exceptions.NodeNotFoundException: The user interface (UI) element for this action was not found.

Possible solutions
• Ensure that the application is open at runtime and that the UI element is visible on the screen.
• Edit the target of the UI activity and use the validation feature to debug the issue.
• The properties may have changed, so re-indicate the element if necessary.
• Check the application state using the Check App State activity before performing the action.
• Increase the value of Wait Before to allow the application to finish rendering and become responsive. at UiPath.UIAutomationNext.Activities.TargetCommonLogic.GetSearchResultAsync(IRuntimeContext runtimeContext, ITargetAnchorable target, CancellationToken token)
at UiPath.UIAutomationNext.Activities.NClick.UiPath.UIAutomationNext.Activities.IVerifyExecutionActivity.ExecuteAsync(IRuntimeContext context, IActivityData data, CancellationToken cancellationToken)
at UiPath.UIAutomationNext.Activities.Services.VerifyExecutionService.ExecuteWithVerifyAsync[T](IVerifyExecutionActivity activity, IVerifyExecutionRuntimeContext verifyContext, IRuntimeContext context, T data, CancellationToken token)
at UiPath.UIAutomationNext.Activities.NClick.ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken)
at UiPath.Shared.Activities.AsyncTaskCodeActivityImplementation.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at UiPath.Shared.Activities.AsyncTaskCodeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at UiPath.Shared.Activities.ContinuableAsyncCodeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
— End of stack trace from previous location —
at UiPath.UIAutomationNext.Activities.NApplicationCard.OnFault(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
— End of stack trace from previous location —
at UiPath.UIAutomationNext.Activities.NApplicationCard.OnFault(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Thank you in advance.

Ah, you’re absolutely right.
Following the recommendation in the error message, I think it would be best to insert a Wait activity after the “Click” and immediately before “Use Application/Browser”.
If you proceed to the next activity immediately after clicking, the browser may not have finished loading, and the target might not be found.

The Check State activity has a feature that waits until the target appears, so if you’re not using the Check State activity, I recommend using it. In other words, set the click button as the target and have the UiPath Robot wait until the click button appears.

Thank you very much for your reply.

I used the [Check State] activity as you suggested, but it still doesn’t seem to find it..

What if you set the checkbox for the native window HTMLWindowName in the NApplication Card of the “Click” activity to OFF in the Selector Editor or UI Explorer (turn off the window selector property)? I encountered an issue before where the process stopped on the second iteration, and turning this off allowed it to continue running on the second iteration and beyond.

Hello

What is the window selector property of the Click activity set to?
If it contains any changing values, it won’t work properly, so remove those attributes or use wildcards.

Also, to help identify the cause, try enabling Highlight Elements in the ribbon menu and checking whether the Use Browser activity is attaching to the expected location after the new window opens.

Is it the same even when you use the Wait activity?

The issue was that I hadn’t set the changing part of the window selector in the Click activity to a wildcard!!

It worked perfectly once I changed that! Thank you all so much for your help!!