<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: Brrowser mode connecting to wrong chrome window in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53539#M8198</link>
    <description>Hello Ved,&lt;BR /&gt;I already have two different objects since it's two different applications (even though they both run in chrome and I open one from the other). Both have different window titles. I have also tried with child index 0 and 1. I have tried to detach from the first before attaching to the second as well but browser mode still connects to the first. Very annoying :(.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Johanna Westlund&lt;BR /&gt;RPA developer&lt;BR /&gt;SpareBank 1  Østfold Akershus&lt;BR /&gt;/Norway&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 30 Sep 2021 11:09:00 GMT</pubDate>
    <dc:creator>johwes</dc:creator>
    <dc:date>2021-09-30T11:09:00Z</dc:date>
    <item>
      <title>Brrowser mode connecting to wrong chrome window</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53537#M8196</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;In the process I am currently working on I open one web based application from another web based application, ending up with two separate chrome windows. In the second application I am able to spy using UIA mode, but when trying to use browser mode it only connects to the first application. I attach to the second application using the window title, I have also tried detaching from the first application before attaching to the second, but the result is still the same.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Win32, UIA and Region mode all connect to the correct application/window, but browser mode only connects to the wrong window. Any ideas?&lt;BR /&gt;&lt;BR /&gt;Blue Prism version 6.10.1.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Johanna Westlund&lt;BR /&gt;RPA developer&lt;BR /&gt;SpareBank 1  Østfold Akershus&lt;BR /&gt;/Norway&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Sep 2021 08:00:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53537#M8196</guid>
      <dc:creator>johwes</dc:creator>
      <dc:date>2021-09-30T08:00:00Z</dc:date>
    </item>
    <item>
      <title>RE: Brrowser mode connecting to wrong chrome window</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53538#M8197</link>
      <description>Hello Johanna,&lt;BR /&gt;One way to work around this is create a separate object to interact with different windows.&lt;BR /&gt;You can treat the two windows as two objects and attach separately ( Taking into consideration some unique identifier is already present. For Ex : window title)&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;Best Regards,&lt;BR /&gt;Ved Sengupta&lt;BR /&gt;RPA Developer&lt;BR /&gt;Deloitte India (Offices of the US)&lt;BR /&gt;Bangalore | INDIA&lt;BR /&gt;*If you find this post helpful mark it as best answer*&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Sep 2021 10:57:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53538#M8197</guid>
      <dc:creator>VedSengupta</dc:creator>
      <dc:date>2021-09-30T10:57:00Z</dc:date>
    </item>
    <item>
      <title>RE: Brrowser mode connecting to wrong chrome window</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53539#M8198</link>
      <description>Hello Ved,&lt;BR /&gt;I already have two different objects since it's two different applications (even though they both run in chrome and I open one from the other). Both have different window titles. I have also tried with child index 0 and 1. I have tried to detach from the first before attaching to the second as well but browser mode still connects to the first. Very annoying :(.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Johanna Westlund&lt;BR /&gt;RPA developer&lt;BR /&gt;SpareBank 1  Østfold Akershus&lt;BR /&gt;/Norway&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Sep 2021 11:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53539#M8198</guid>
      <dc:creator>johwes</dc:creator>
      <dc:date>2021-09-30T11:09:00Z</dc:date>
    </item>
    <item>
      <title>RE: Brrowser mode connecting to wrong chrome window</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53540#M8199</link>
      <description>I think I have found the cause of the problem, both windows have the same PID:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="26122.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/26255i5C31E60E8BC7BB7E/image-size/large?v=v2&amp;amp;px=999" role="button" title="26122.png" alt="26122.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Is there any way to use the handle to attach? I can't find that option in the navigate stage for attach....&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Johanna Westlund&lt;BR /&gt;RPA developer&lt;BR /&gt;SpareBank 1  Østfold Akershus&lt;BR /&gt;/Norway&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Sep 2021 12:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53540#M8199</guid>
      <dc:creator>johwes</dc:creator>
      <dc:date>2021-09-30T12:09:00Z</dc:date>
    </item>
    <item>
      <title>RE: Brrowser mode connecting to wrong chrome window</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53541#M8200</link>
      <description>Hi Johanna,&lt;BR /&gt;&lt;BR /&gt;I was reading your post and just about to suggest that you attach using the PID. What you show there in your collection screenshot doesn't seem possible. Is that a collection you're creating, or are you using the "Read Memory Stats" canned action to retrieve the data?&amp;nbsp; Process ID is a unique Windows/Linux identifier - I don't think you can have 2 different running processes with the same PID.&lt;BR /&gt;&lt;BR /&gt;All that said,&amp;nbsp; I've had similar issues in the past and my "always worked so far" fix has been this:&lt;BR /&gt;Within my object, create a page called Attach via PID&lt;BR /&gt;Create the following stages-&lt;BR /&gt;Read attached&lt;BR /&gt;If attached, wait/check for an element that should be in the window you need. If not attached, skip next line and go right to Call Read Memory Stats action&lt;BR /&gt;If found, you're done. if not found, detach&lt;BR /&gt;Call Read Memory Stats in the Environment Utility for the Chrome process&lt;BR /&gt;Check that there is more than one row in the resulting collection - the last row will always be PID 0, idle process and not applicable.&lt;BR /&gt;Loop through the resulting collection, attaching using the PID and Process Name as my inputs&lt;BR /&gt;After attaching, check for an element that should be in the window you need. If found, you're done. If not found, detach and then go back through the loop.&lt;BR /&gt;If you encounter PID = 0, skip it because your resulting wait stage will bomb.&lt;BR /&gt;If you get to the end of the loop, either your window isn't there or your wait stage needs to be reconfigured&lt;BR /&gt;&lt;BR /&gt;I hope this makes sense. I'd upload an image or xml of my object page but that functionality is blocked by my institution so I can't upload to the portal.&lt;BR /&gt;&lt;BR /&gt;Something else I've noticed while developing in Chrome.&amp;nbsp; If the only way I can spy an element is using UIA, chances are I'm attached to the wrong instance of Chrome and as soon as I run the process through control room the whole thing will fail.&amp;nbsp; It's good to do during setup so I can properly add my check/wait stages in my Attach via PID page, but then I have to go back and re-spy in browser mode.&amp;nbsp; I should also note that I've tried surface automation (region mode) and it, too, will fail if you're attached to the wrong PID.&amp;nbsp; I think you experienced that, too, and described it above.&lt;BR /&gt;&lt;BR /&gt;I hope this helps. If anything is unclear, please respond and I'll do my best to explain better.&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Diane Sanzone&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Sep 2021 12:33:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53541#M8200</guid>
      <dc:creator>diane.sanzone</dc:creator>
      <dc:date>2021-09-30T12:33:00Z</dc:date>
    </item>
    <item>
      <title>RE: Brrowser mode connecting to wrong chrome window</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53542#M8201</link>
      <description>Hi Diane,&lt;BR /&gt;&lt;BR /&gt;In the most recent version of Blue Prisms "Utility General" version you get an action called "Get Windows" which provides the output I posted above.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="26125.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/26253iDF7C1471851F2C1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="26125.png" alt="26125.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Very useful action, but very annoying that I get the same PID for both windows...! I guess your "always worked so far" fix will not work in this case with two identical PID's?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Johanna Westlund&lt;BR /&gt;RPA developer&lt;BR /&gt;SpareBank 1  Østfold Akershus&lt;BR /&gt;/Norway&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Sep 2021 12:46:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53542#M8201</guid>
      <dc:creator>johwes</dc:creator>
      <dc:date>2021-09-30T12:46:00Z</dc:date>
    </item>
    <item>
      <title>RE: Brrowser mode connecting to wrong chrome window</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53543#M8202</link>
      <description>Yikes. I'm quite confused because you shouldn't have two processes with the same PID. What happens when you check task manager directly?&amp;nbsp; If you manually kill the process that is the PID retrieved with that call, do both windows close, or only one?&amp;nbsp; Also, is the Environment Utility no longer available in the newest version?&amp;nbsp; I wonder if the other action would produce different results?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Diane Sanzone&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Sep 2021 12:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53543#M8202</guid>
      <dc:creator>diane.sanzone</dc:creator>
      <dc:date>2021-09-30T12:52:00Z</dc:date>
    </item>
    <item>
      <title>RE: Brrowser mode connecting to wrong chrome window</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53544#M8203</link>
      <description>It keeps getting better... Task manager shows a number of chrome processes (extensions and what not), but only one with the PID retrieved by "Get Windows", 9108 :&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="26130.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/26259i7708703CE5D40A4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="26130.png" alt="26130.png" /&gt;&lt;/span&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="26131.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/26263i693A53A560AEB766/image-size/large?v=v2&amp;amp;px=999" role="button" title="26131.png" alt="26131.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Ending the task with PID 9108 closes both chrome windows.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am trying to get PIDs with Read Memory Stats but keep getting this error even though the collection with process names has a column called Process and so does the collection for the results.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="26132.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/26262i95FD0DFEB8C8A47D/image-size/large?v=v2&amp;amp;px=999" role="button" title="26132.png" alt="26132.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Ideas?&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Johanna Westlund&lt;BR /&gt;RPA developer&lt;BR /&gt;SpareBank 1  Østfold Akershus&lt;BR /&gt;/Norway&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Sep 2021 13:59:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53544#M8203</guid>
      <dc:creator>johwes</dc:creator>
      <dc:date>2021-09-30T13:59:00Z</dc:date>
    </item>
    <item>
      <title>RE: Brrowser mode connecting to wrong chrome window</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53545#M8204</link>
      <description>YES! I had very similar issues the first time I tried to use this action because the documentation is unclear.&amp;nbsp; You need to pre-define your collections like this:&lt;BR /&gt;One collection called Process Names with fields Process Name and PID. Initial value for process name = chrome, initial value for PID is blank&lt;BR /&gt;second collection called Process Statistics with fields Process Name, PID, Working Set, and Virtual Memory. no rows/initial values for this collection.&lt;BR /&gt;Your Process Names collection is the input to the Get Memory Stats action, your Process Statistics collection is the output.&lt;BR /&gt;&lt;BR /&gt;See if that helps.&lt;BR /&gt;&lt;BR /&gt;Also, bummer about closing the PID and both windows. That boggles my mind.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Diane Sanzone&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Sep 2021 14:08:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53545#M8204</guid>
      <dc:creator>diane.sanzone</dc:creator>
      <dc:date>2021-09-30T14:08:00Z</dc:date>
    </item>
    <item>
      <title>RE: Brrowser mode connecting to wrong chrome window</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53546#M8205</link>
      <description>I found the problem, I had named my field "Process name" instead of "Process Name". Trust BP to be a stickler for details :-P.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So I ran both Get Windows and Get Memory Stats and this is the result:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="26141.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/26275iEBF6B016C9F0959D/image-size/large?v=v2&amp;amp;px=999" role="button" title="26141.png" alt="26141.png" /&gt;&lt;/span&gt;&lt;BR /&gt;As you can see Get Memory Stats finds the same PIDs as in task manager&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="26142.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/26271iC3F47B1CAC9C1893/image-size/large?v=v2&amp;amp;px=999" role="button" title="26142.png" alt="26142.png" /&gt;&lt;/span&gt;&lt;BR /&gt;This is very mind boggling indeed.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Johanna Westlund&lt;BR /&gt;RPA developer&lt;BR /&gt;SpareBank 1 Østfold Akershus&lt;BR /&gt;/Norway&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Oct 2021 06:38:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53546#M8205</guid>
      <dc:creator>johwes</dc:creator>
      <dc:date>2021-10-01T06:38:00Z</dc:date>
    </item>
    <item>
      <title>RE: Brrowser mode connecting to wrong chrome window</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53547#M8206</link>
      <description>Hi Johanne,&lt;BR /&gt;&lt;BR /&gt;This is an error in Blue Prism that popup windows can only be spied in UIA. See this thread for the current 'work-around' &lt;A href="https://community.blueprism.com/communities/community-home/digestviewer/viewthread?GroupId=145&amp;amp;MessageKey=26b75fd8-d3c2-47f6-a705-429c074e3cda&amp;amp;CommunityKey=3743dbaa-6766-4a4d-b7ed-9a98b6b1dd01&amp;amp;tab=digestviewer#bm26b75fd8-d3c2-47f6-a705-429c074e3cda" target="test_blank"&gt;https://community.blueprism.com/communities/community-home/digestviewer/viewthread?GroupId=145&amp;amp;MessageKey=26b75fd8-d3c2-47f6-a705-429c074e3cda&amp;amp;CommunityKey=3743dbaa-6766-4a4d-b7ed-9a98b6b1dd01&amp;amp;tab=digestviewer#bm26b75fd8-d3c2-47f6-a705-429c074e3cda&lt;/A&gt;. &lt;BR /&gt;&lt;BR /&gt;We are hoping for some attention from the Blue Prism team so this can be fixed ASAP.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Lars&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Lars Vinding&lt;BR /&gt;Faglig koordinator&lt;BR /&gt;Kolding Kommune&lt;BR /&gt;Europe/Copenhagen&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Oct 2021 12:32:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53547#M8206</guid>
      <dc:creator>LarsVinding</dc:creator>
      <dc:date>2021-10-01T12:32:00Z</dc:date>
    </item>
    <item>
      <title>RE: Brrowser mode connecting to wrong chrome window</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53548#M8207</link>
      <description>Hi Lars,&lt;BR /&gt;&lt;BR /&gt;Thank you. I will keep an eye on this thread.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Johanna Westlund&lt;BR /&gt;RPA developer&lt;BR /&gt;SpareBank 1  Østfold Akershus&lt;BR /&gt;/Norway&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Oct 2021 09:53:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Brrowser-mode-connecting-to-wrong-chrome-window/m-p/53548#M8207</guid>
      <dc:creator>johwes</dc:creator>
      <dc:date>2021-10-06T09:53:00Z</dc:date>
    </item>
  </channel>
</rss>

