cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to identify web element in new tab

EricLi
Level 6

Web application sometimes will open a new tab, blue prism will fail to identify elements in this new tab. This issue looks occurring in edge V142.  My workaround is to copy existing web element and change properties. Any suggestions could advise me? We are not allowed to downgrade edge.

error message as: 

There was an error during the spying operation.

System.InvalidOperationException: One or more errors occurred.
at BluePrism.AMI.clsAMI.Spy(Boolean includeAiSurfaceAutomation, Boolean includeAutoSpyMode, Boolean includeAutomaticAttributeSelection, Boolean allowSpyMultiple, Dictionary`2 customAttributes)
at AutomateUI.frmIntegrationAssistant.HandleSpyOrLaunchClick(Object sender, EventArgs e)

7 REPLIES 7

You may need to attach to the new tab as a new instance of edge. Check the html to see if there is a reference for the new window that you can attach to, obviously if the tab has identifiable information that changes because of the page you were previously working on you may need to put that in as an input for the window title. 

naveed_raza
Level 7

if Edge is launching with multiple tabs probably you can check with the IT team disabled that feature and from Blueprism side, when its launched , you can attach to the browser with Window title and activate it , by this you can easily access the elements

Thank you  Greggoodrem! Check HTML, there is no reference can be identified for new window. The new tab has same window title with the first one. Quite curious it works well in spite of 2 or 3 or more tabs opened in before. When edge upgraded to V142, mouse click feature to identify elements in new tab go failed.

Thank you  Naveed_raza! Only 1 tab launched at the beginning. The new tab launched by click element on the first tab. New tab has the same window title with the first one. It is always attached to the first tab even though detach and attach again. Multiple tabs are required by end user; cannot disable it.

naveed_raza
Level 7

in that case , you can use match index to attach to 2nd tab, use match index as 2 and try 

Thank you  Naveed_raza! I didn't find "match index" option in attach action. Would you advice where can find it? An example will be better for my understanding.

naveed_raza
Level 7

can you please share the application modeller  attribute screenshot