Blue Prism Product

last person joined: 9 hours ago 

Chat about Blue Prism products
Expand all | Collapse all

Detach from chrome does not work

  • 1.  Detach from chrome does not work

    Posted 11-26-2020 07:40
    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
    ------------------------------


  • 2.  RE: Detach from chrome does not work

    Posted 11-26-2020 08:31
    Edited by Thomas Warnaar 11-26-2020 08:32
    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
    ------------------------------



  • 3.  RE: Detach from chrome does not work

    Posted 11-27-2020 09:15
    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
    ------------------------------



  • 4.  RE: Detach from chrome does not work

    Posted 12-02-2020 12:57
    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
    ------------------------------



  • 5.  RE: Detach from chrome does not work

    Posted 12-02-2020 13:20
    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
    ------------------------------



  • 6.  RE: Detach from chrome does not work

    Posted 12-02-2020 16:13
    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
    ------------------------------



  • 7.  RE: Detach from chrome does not work

    Posted 12-03-2020 10:56
    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
    ------------------------------



  • 8.  RE: Detach from chrome does not work

    Posted 12-02-2020 13:34
    Edited by Nilesh Jadhav 12-02-2020 13:36
    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
    ------------------------------



  • 9.  RE: Detach from chrome does not work

    Posted 12-02-2020 15:30
    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
    ------------------------------



  • 10.  RE: Detach from chrome does not work

    Posted 12-02-2020 16:14
    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
    ------------------------------



  • 11.  RE: Detach from chrome does not work

    Posted 12-03-2020 15:34
    I just tested Detach in 6.10, and it doesn't work there either. My guess is that it's due to the new feature involving the Tracking ID. I tried both ways, using the Tracking ID and not using the Tracking ID. Just doesn't work for me at all.

    @Robert Nicklin Is this an issue you've heard about already? Seems to apply to both 6.9 and 6.10.​

    ------------------------------
    Dave Morris
    Cano Ai
    Atlanta, GA
    ------------------------------



  • 12.  RE: Detach from chrome does not work

    Posted 12-03-2020 15:44
    Hi Dave,

    This hasn't been something I've been made aware of - I'll take a look through recent support cases tomorrow and see if anyone else has been reported this issue on 6.9 or 6.10.

    My understanding is that a "Detach" action without a Tracking ID should detach all active browser instances, whereas performing the same action while supplying a Tracking ID should detach just the instance specified. By the sounds of it this isn't what is happening of course, but I haven't tried to replicate this myself at the moment.

    I haven't seen any mention of the use of Tracking ID in the messages in this thread, if you happen to have the processes and objects you used to test this could you generate a Tracking ID associated to the browser instance you launch, specify this in the detach action and let me know if this changes the behaviour at all?

    Regards,
    Rob

    ------------------------------
    Robert Nicklin
    Senior Product Owner
    Blue Prism
    Warrington, England
    ------------------------------



  • 13.  RE: Detach from chrome does not work

    Posted 12-15-2020 17:29
    Hello Dave,

    Apologies about the delay in getting back to you - I've now had chance to look over and rerun our tests for the detach actions and I'm currently unable to replicate the situation described where a detach action is not correctly disposing of the connection to a browser, either with or without a Tracking ID supplied.

    I'll speak to the support team and we'll keep an eye out for any incoming support cases related to detaching browsers in 6.9 and 6.10 in case this is reported by another user and we're able to replicate and investigate further.

    Regards,
    Rob

    ------------------------------
    Robert Nicklin
    Senior Product Owner
    Blue Prism
    Warrington, England
    ------------------------------



Share