cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced Consolidation Exercise

KeerthanaJ
Level 5
The attach object in BP Travel is not working. I just did whatever given in Browser automation guide The launch action is working. But when i run the attach action, it is not working. It says target application could not be identified. (pls check screenshot) 

Please check screenshot to find the attach action properties. Have set the child index as zero.

Also i have set the TabProcGrowth to zero just like mentioned in Browser automation guide pdf. But still the attach action is not working. Can someone pls help me with it. thanks!

------------------------------
Keerthana J
------------------------------
1 BEST ANSWER

Helpful Answers

Jared.Rumball
Level 6
Hi,

Please try the following as troubleshooting steps:

  • Launch the BP Travel application
  • Open Task Manager and get the PID from the Details tab:
32094.png

Note - with the default TabProcGrowth setting there will be the main iexplore process plus a separate process for each tab in the IE window. You want to identify the process that the BPTravel application is running in and copy that PID. If TabProcGrowth has been changed then there should only be one IE process.

  • Back in BP, clear all other Inputs from the Attach stage except the Process Name and then enter the copied PID directly into the Process ID input field like so:
32095.png

Note - this is only to check that you can successfully attach to the current window you have open. You will need to remove the Process ID once the problem has been narrowed down.

  • Check that you can successfully Attach to the currently open window with this configuration. There should be no window titles or child index parameters involved at this point, we are telling BP to attach to a specific process by it's ID.
  • If that Attach action worked then it's time to introduce and test the Window Title parameter.
  • Reset the object and Detach from the application.
  • Enter "BP Travel*" as the default value for a Window Title text data item:
32097.png

  • Add the Window Title into the Attach inputs. Leave the Process ID in there for now as well (make sure you haven't closed the application and re-opened it or you will need to get the new PID!). Your Attach stage Inputs should now look like this:
32098.png

  • Check that this still attaches okay.
  • If you're still good then Reset and Detach again. Now we're going to revert the solution to use the environment variable and the Window Titles collection instead of the basic Window Title text data item.
  • Set the BP Travel Window Titles environment variable to the text "BP Travel*, Untitled*" (with a comma)
  • Add the Create Collection of Titles stage back into your Attach flow
  • After the Create Collection of Titles stage is run your Window Titles collection should have two rows like this:
32099.png

  • Change the Attach stage to use the Window Titles Collection instead of the Window Title text data item:
32100.png

  • Check that this configuration still attaches okay
  • If that's still a success then Reset and Detach
  • Now remove the Process ID from the Attach stage but add Child Index = 0 and retry:
32101.png

Note - with TabProcGrowth in the default setting (a separate process is created for each IE tab) you need the Child Index in order for BP to attach successfully.

All going well you have been able to attach following through this series of steps. I performed each of these steps on my own system as I documented it and it worked fine for me. If it didn't work at any stage then hopefully breaking it down like this has helped to identify where the issue lies within your environment.

------------------------------
Jared Rumball
Q4 Associates Ltd
https://www.q4associates.biz/
------------------------------

View answer in original post

32 REPLIES 32

GopalBhaire
Level 10
Does your Windows Title collection contain a field  "Window Title", if not that might be the issue.

------------------------------
Gopal Bhaire
Analyst
Accenture
------------------------------

MayankGoyal2
Level 8
Hi Keerthana,

Please try child index number as well in case it doesn't work.


------------------------------
Mayank Goyal
Technical Lead
Infosys Limited
America/Phoenix
------------------------------

Hi Keerthana,

When using the 'Window Title' or 'Window Titles' as inputs to the Attach Action, the value of the input must 100% match the actual Windows Titles, or use a wildcard option.

The best way to check what the full Windows Title is for the application is through the Processes Tab in Windows Task Manager:

32057.png
As you will see from the image, Windows Titles in Internet Explorer are appended with ' - Internet Explorer', therefore your Window Title input must contain this also. For example, my IE Tab's title is 'BBC - Home', but my input would be "BBC - Home - Internet Explorer" as extracted from Task Manager.

The other option is to use a wildcard indicator in your Window Title input. For example, "BBC - Home*" would match the window OK, as I have indicated to match everything from the beginning of the title, up to the letter 'e' in 'Home'. Any value after this will be ignored.

Hope this helps.

------------------------------
Carl Carter
Developer Program Manager
Blue Prism
Europe/London
------------------------------

It contains a field "Window Title". Please check the screenshot  for the "Window title" collection properties.

------------------------------
Keerthana J
------------------------------

Hi, Thanks for the reply. I checked the process name- It shows "BP Travel Login - Internet Explorer". (Pls Check screenshot). But i used only wildcard option for window title. Pls check screenshot.

------------------------------
Keerthana J
------------------------------

Mohammed_OmerAl
Level 4
Hi Team, 

Thank you for your email. 

Please note you have to give the window title as BP Travel*.Untitled*

If you update as above it will attach easily. Let me know if you have any questions. 

Omer


------Original Message------

The attach object in BP Travel is not working. I just did whatever given in Browser automation guide The launch action is working. But when i run the attach action, it is not working. It says target application could not be identified. (pls check screenshot) 

Please check screenshot to find the attach action properties. Have set the child index as zero.

Also i have set the TabProcGrowth to zero just like mentioned in Browser automation guide pdf. But still the attach action is not working. Can someone pls help me with it. thanks!

------------------------------
Keerthana J
------------------------------

So are you saying, i want to change the environment variable 'Window Title" as BP Travel*.Untitled*?

I tried that, but still not attaching. It says "Target application could not be identified"

------------------------------
Keerthana J
------------------------------

Hi

You don't need to use the split text action instead use window title (as per the previous email) and place in navigate stage where you are using attach functionality. ( the moment you open navigate stage select element as attach.
On the same Below drag and drop the window title) 

Hope this helps you. 

Omer



------Original Message------

So are you saying, i want to change the environment variable 'Window Title" as BP Travel*.Untitled*?

But we are splitting the window title using "comma".(Pls check screenshot) But you want to change it to (.)?

------------------------------
Keerthana J
------------------------------

Hi thanks for the reply. Like you said, i used the window title in navigate stage. Pls check screenshots below. Still not working.

------------------------------
Keerthana J
------------------------------