Attach browser# Unable to detect any filed on the new Windows opened

Hello everyone,

I am working on a project where I need to switch between different browser windows. For example, I have a window A, I click on the Create button, then a new window opens where I have to enter some information and press the OK button.
I tried to use Attach browser activity but I get the error below.
could you advise please . Many thanks

Source: Type Into ‘INPUT WD5E’

Message: Could not find the UI element corresponding to this selector:

[1]

[2]

Search failed at selector tag:

[1]

The closest matches found are:

[64%]

Exception Type: UiPath.Core.SelectorNotFoundException

Go to Home>Tools and then again add extension for that browser. Which Browser you are using?

hello,
i’m using Mozilla Firefox .the extenstion is already installed .i can open the first window and do many actions on it. but when the second window is opened , the programe is unable to detect it.

Thanks

Can you send Screenshot of exception msg?

here is the error msg

image

regards

You need to make selector dynamic like htmlwindowname=‘WID*’ use this and let me know.

i got now this error
image

once the second UI is opened i try to type into a field but i think the program is not able to detect it.

regards

id=‘iFrameId_*’ use this one in selector

Hi @abdellah_Abu_mohamed

Could you share the selector of the attach browser and Type into activity!

Regards

HI @ahmad.mubarak

I made this modification and the program execution ends without error but the target field remains empty. nothing was recorded inside.

Thanks

This is quite common and happens all due to selectors changing dynamically when the new page appears. This has to be achieved by adjusting the selectors. From my experience, the best easy way would be using an Anchor base activity with Find Element (as the anchor for the target )and the Actionable activity such as click or type into. Use UIExporer to define your selector
image

You’re Welcome :slightly_smiling_face:
You can mark as solution thank you.

hi @ahmad.mubarak

teh result is not as expected.please refer to may latest answer ( after but :grinning: )

I made this modification and the program execution ends without error but the target field remains empty. nothing was recorded inside.

Hi @abdellah_Abu_mohamed

As mentioned there is no selector Updated!

Regards

hi @pravin_calvin
sorry , here is the selectors

left - Attach browser
right- Type into

Many thanks

Hi @abdellah_Abu_mohamed

Try to Wild Card the title attribute in both Attach browser and Type into like Recherche de commandes* and If its not working Try to use any anchor for that Type into activity as @RAKESH_KUMAR_BEHERA said

Regards