Unable to switch to the foreground window in WEB


I want to interact with the foreground window and select files, among other things, but whenever I insert an activity and indicate the screen, it switches to the page in the very back.
As a result, I can’t proceed any further.
I’m new to UiPath. How can I fix this?

Background: I’m trying to automate invoice registration in an expense settlement system.
Thank you in advance.

Hello,

If possible, it would be helpful if you could share screenshots or other details showing how you’ve set up your workflow and which activity isn’t behaving as expected.

Hello @Jimmy_Ji

You can work with several windows by using several Use Application/Browser container activities.

On the subsequent actions you can chose Work in Scope to define which window you need to interact with.
Then it is just a matter of making your Descriptors as specific as needed.

Regards
Soren

I’m using Modern Design.
When I try to select an element by clicking, it goes straight to the page in the very back, and the foreground page isn’t displayed either.

Thank you for your response.
This time, I’m trying to automate the following process:
Uploading invoices to a web-based expense management system and filling in the required fields using data from an Excel file that has already been created. Since there are a large number of invoices, they will be processed in a loop.

I’ve also attached the workflow so far. I can’t get to the screen for selecting the file in the foreground.

Hello,

Would it be possible to include screenshots of the workflow? As it is, it’s difficult to tell which activities are being used.
(By workflow, I mean the sequence of activities put together in UiPath.)

Is this clearer now?
Flowchart.pdf (172.5 KB)

Hello,

Thank you.
Could you please tell me which part is causing the issue? Is it the “4. Web registration process” section?

Manually, I click ① and then ②, and page ③ appears.
With UiPath, it gets as far as ② and stops with page ② still displayed. It won’t proceed to the next page, ③.

Does ② refer to the arrow shown below in the workflow you sent?
I believe you’re also seeing an error. Could you share which activity is producing the error and what the error message says?

As for how to proceed, I think the button in question is in a different window, so please try specifying the Receipts/Invoices (New Registration) window again using the Use Application/Browser activity. (SingleWindow may be the better option for the window attach mode.)
Then, please try selecting the “Select File” button again and see what happens.

Thank you very much for your reply.
② As you pointed out, I’m clicking New Registration.

I’ve followed your instructions up to step ③, but it gets stuck at Select File, and the attached error appears.
I’m embarrassed to ask again, but could you please give me just a hint on how to resolve this?
New Microsoft Excel Worksheet (9).pdf (314.6 KB)

Have you tried the Activate activity in Classic Activities? I had a similar experience a while back, and it worked for me.

Hello,

I suspect the Use Application/Browser activity may be referring to a different window or tab than the one indicated by the red arrow in the image below.

There is a Highlight Elements button on Studio’s Debug ribbon. Please enable it, run a debug session, and check whether this activity is pointing to the expected window.

If it isn’t pointing to the expected window, you’ll need to review the activity’s settings.
If it is pointing to the expected window, the issue is with the next Click activity, so we can focus on reviewing that.

Thank you for your reply.
I tried various things, but nothing in particular changed.
When I configured the site below, which simply doesn’t have page navigation, with the same activity,
the same kind of error appeared and I couldn’t proceed.
Perhaps I made a mistake in the first place.

When running a debug session with Highlight Element enabled, does the activity that opens the application/browser indicate the expected window? Please check this first.

As for the data transfer service, it works without any issues in my environment. The reference image is also highlighted in red, so I think there may be a problem with the selector settings.