29-02-24 04:58 PM
Hello,
Im struggling to attach to a browser that is already running.
We have other automations which we have set up to do this and have no issues so not sure whats causing this issue however please see details below ...
My automation is logging in to the application fine which uses the basic actions object we created however when it needs to click a button on that application (using another object) its giving me the error each time
Internal : Failed to perform step 1 in Navigate Stage 'Attach' on page 'Attach' - The query did not match the window title provided, please try again.
Ive used wildcards in the window title
Ive checked in application modeller under the win32 spied screen of what the window text is and used that as the window title and still get the error
ive increased the child index number and nothing works
I then used the utility general - get windows action which got the window title and we passed that parameter in as the window tile on the attach action and still got the error .
whats really strange is that it doesn't attach to the browser that is already running - however if i go into the application modeller on the object where its failing and click attach - it opens a new window for the application and when i run the attach action it works ?
Ive included screen shots below
2 objects we are using in our process
process launches and logs into healthroster fine - which uses the basic actions object
but then fails on the download payroll page - which uses the payroll finalisation object
i then go to the payroll finalisation object (the object its failing on) and in application modeller click attach
this opens up a new window of the application
i run the attach action and it attaches fine - it just wont attach on the original application that launches when it logs in - which is what i need it to do
Any ideas ?
Thanks
Frankie
Answered! Go to Answer.
01-03-24 12:45 PM
Try attaching without specifying the Window Title (or use *) and just use Process Name (msedge) and Child Index (probably zero). In Edge (and Chrome) all tabs are part of the same instance, so you don't really need to use Window Title.
The 'new window opens when I click attach' effect is probably dues to this:
I've never liked this feature and always ensure this field is blank so that the VBO won't automatically try to launch when attach fails.
01-03-24 12:45 PM
Try attaching without specifying the Window Title (or use *) and just use Process Name (msedge) and Child Index (probably zero). In Edge (and Chrome) all tabs are part of the same instance, so you don't really need to use Window Title.
The 'new window opens when I click attach' effect is probably dues to this:
I've never liked this feature and always ensure this field is blank so that the VBO won't automatically try to launch when attach fails.
01-03-24 02:01 PM
Hi John -
thank you so much, at first I tried not using the window title but got the same error, then i set the widow title as (*) wildcard and it worked!!
thanks so much again 🙂
Frankie
01-03-24 03:32 PM
Great news Frankie. You'll find that once attached, a VBO can spy elements on any tab. The Window Title parameter suggests that you are attaching to a particular tab but with Edge and Chrome that isn't the case - all tabs are part of a single instance.