cancel
Showing results for 
Search instead for 
Did you mean: 

Detach from chrome does not work

Hi everyone.

In order to troubleshoot a potential cause of a crippling problem I need to cycle through all chrome PID's (Process ID) by detaching the current PID, attaching to the next, getting some readings and loop these steps. 

I find that I am able to detach once, but from that point onwards I get an error saying it cannot attach to the next PID because Blue Prism is already connected to a different application (which is the one I first try to detach from). 

The detach attempt is just a navigate with detach as the selected action. I can find hardly any previous or troubleshooting information on detach actions so I ask my question here. Any ideas?

Thanks!

P.S., is there a way to return the PID of the currently connected process?

------------------------------
Thomas Warnaar
------------------------------
13 REPLIES 13

Small update, the problem described above still exists but is nog longer relevant to me. I tried attaching to the correct PID and later an incorrect PID manually and both times everything worked as expected. 

I would like to therefore amend my question with the original problem. I have built a robot and tested it on my workstation and afterwards in bulk on our test resources. The test was passed and we put the robot into production, but there it was not able to detect any of the spied elements in the website UI anymore. On my workstation it does detect the same elements both on the test interface and the production interface. The website in question is Salesforce Lightning, our test and production resources are VM's where we have not had this type of problem before. We run on chrome, chrome itself is attached and the robot is able to navigate to URL's etc but is purely unable to find or recognize any element in the UI.

I now have no more things to check on where this difference can come from. Any ideas?

*Edited to include the Lightning part of SalesForce Lightning.

------------------------------
Thomas Warnaar
------------------------------

Hi, Thomas,

probably stupid question but what about Chrome versions. Did you check that your version (on your machine) is the same as in VMs? Did you check any possible differences between your TEST and PROD environment? Do you use --force-renderer-accessibility parameter?

Regards,

------------------------------
Zdeněk Kabátek
Head of Professional Services
NEOOPS
http://www.neoops.com/
Europe/Prague
------------------------------

Hi,

Thank you for your reply, sorry for not answering sooner but I am still in the midst of solving a myriad of chrome related problems and did not want to prematurely answer to your suggestion.

Yes the Chrome versions are the same on all our machines. Probably this error was caused by a BP V6.9 related error where Chrome does not function normally if you start the .exe in a specific way (we use an intermediate software agent to target the .exe, functionally the same but BP does not recognize the running program if you have the settings such that it is set to start Chrome through the intermediary). 

I have created a workaround and this problem is no longer an active issue.

------------------------------
Thomas Warnaar
------------------------------

Hi Thomas,

I'm writing to let you know that you are not alone. I'm also trying to cycle through the PIDs of the various chrome services to address an issue where BP isn't automatically connecting to the active pop-up window.  I, too, am unable to use the detach navigate action (it just doesn't detach).  I did notice that this is an issue for me only in our new install of BP 6.9. If I run the same exact object/navigate/actions in BP 6.2 (our prior version), it is not an issue.  I looked through the known issues for prior releases and didn't see anything mentioning this, only issues with ephemeral ports on chrome windows.  If you ever do find a way to make the detach action work and can post it here I'd appreciate it.  I'll keep trying as well and be sure to post again if I identify a fix.

------------------------------
Diane Sanzone
------------------------------

Hi Thomas,

i have use 6.9 but not facing detach issue.

what is the version of chrome extension you are using ?

Thanks

------------------------------
Nilesh Jadhav
Senior RPA Specialist
ADP
India
------------------------------
Nilesh Jadhav.
Consultant
ADP,India

Hi Nilesh,

We're running 2.2.0.2.  I'm inquiring regarding upgrading to 2.2.0.3 as I see that was subsequently released, but it's still a pending request internally.​

------------------------------
Diane Sanzone
------------------------------

Hi Diane,

Thank you for your reply, it helps to know I'm not alone 😉

My workaround ensured I did not need to detach anymore. If your situation is similar to ours (where chrome is launched through some other means than directly adressing the .exe using BP) you could try the same workaround. I ended up removing all launch parameters etc from the application modeller, and launching Chrome through a separate "launch program" action. For some reason this makes BP attach relatively normally to Chrome. It doesn't make sense to me at this point as it should be functionally identical but it's worth a shot. 

At this point my application model wizard is set to "Browser based Application (Chrome, Firefox or Edge Chromium)" which is already running. Title of the target page is "*Google Chrome". Everything else I left empty. The Application Name in the Chrome Application Modeller tree is set to "Chrome". I am launching Chrome using the "Start Process" action in the Utility - Environment" VBO. This seems to work out the best for me, I hope it helps with your problem.

Good luck!

------------------------------
Thomas Warnaar
------------------------------

Hi Nilesh,

It only says Version 2.2.0 in my extension. We are on the BP V6.9 extension, this is the one that came with the install when we upgraded to BP V6.9.

Sincerely,
Thomas

------------------------------
Thomas Warnaar
------------------------------

Hi Thomas,

I think there are some configuration change required & after that your issue will resolve.

I am assuming that object is created and application modeler is configure with Chrome application along with selection already running..

If assuming is correct then do below things.

1.Open object and application modeler.
2.Select tree toot element.
3.Remove title from title section (make it blank)
4.Click  ok
5. add navigate stage and open it.
6.drag and drop root element and select attach action.
7. Windows Title value should be - "*" ( in input section (below of attach action)_
8. Process Name value should be -  "chrome"
9. Child index value should be - 0
10. Click ok save the object & try to attach and detach.

I hope it will resolve your issue.

thanks




------------------------------
Nilesh Jadhav
Senior RPA Specialist
ADP
India
------------------------------
Nilesh Jadhav.
Consultant
ADP,India