Close a popup frame and I encountered "can't access dead object"

Hello Admin, Please help!

I am new to Ui.Vision and i have tried to code below with a inline frame. When I have selected the value and the inline frame will be closed. Then Ui.Vision is not able to locate the original fields with the error “can’t access dead object”. Just suspect it’s not able to get back to the original tab / default content. Could anyone help advise how i can get it resolved? Thanks so much.

Using: Firefox 89.0.2, Ui.Vision RPA 5.3.17

{
  "Command": "store",
  "Target": "true",
  "Value": "!errorIgnore"
},
{
  "Command": "click",
  "Target": "xpath=//*[@id=\"CName_lovIcon\"]/img",
  "Value": ""
},
{
  "Command": "pause",
  "Target": "1500",
  "Value": ""
},
{
  "Command": "selectFrame",
  "Target": "id=iframelovPopUp_CName",
  "Value": ""
},
{
  "Command": "select",
  "Target": "id=categoryChoice",
  "Value": "label=CN"
},
{
  "Command": "comment",
  "Target": "click xpath=//*[@id=\"categoryChoice\"]/option[2]",
  "Value": ""
},
{
  "Command": "type",
  "Target": "id=M__Id",
  "Value": "1234348"
},
{
  "Command": "click",
  "Target": "id=lovBtnGo",
  "Value": ""
},
{
  "Command": "click",
  "Target": "xpath=//*[@id=\"CN TblRN:Content\"]/tbody/tr[2]/td[2]/a/img",
  "Value": ""
},
{
  "Command": "selectFrame",
  "Target": "id=_pprIFrame",
  "Value": ""
},
{
  "Command": "XClick",
  "Target": "id=FType",
  "Value": ""
},

Hello Admin / guys,

It’s a bit urgent, did any experts know how to fix or any workaround? thanks

Why you use a old version of ui vision ?
It’s important to use always latest version

Hello, I have also tried the latest release but having the same error. Any advice? Thanks.

Post url page, need to see the popup to try some codes

The site is an internal site and can’t be accessible from outside network. I here attached the iFrame popup for your reference. Once I find the record and click select, the popup frame will be closed but any other lines following will be throw the error “can’t access dead object” in the original page. I have tried SelectFrame: relative=top or SelectFrame: Index=0 but no luck :frowning: See if you can help find some hints. thanks a lot.

Without see the page is more hard to find a solution

A working solution is using Xclick with image (X of the popup), need not to detect frame it’s the fast and easy solution to do this job

here info
https://ui.vision/rpa/docs/xclick

Thanks for your advice. The strange thing is even if I use the “xClick”, it still returned “can’t access dead object” so i am really stuck on it :frowning:

With image recognition you can solve your ptoblem, you do not use Xpath but Xclick on image