[error] Line X: no access

Hello everyone!

Recently an error started to happen with all my macros, since before they worked normally, now they are all showing the same error.

[error] [Line 36]: no access

Does anyone know how I can solve this?

What’s the code that is on line 36?

{
“Command”: “selectFrame”,
“Target”: “relative=top”,
“Value”: “”
},

but the problem is that it doesn’t happen only on that line, it happens on any random line … running the macro again it runs the line that gave error previously

I’ve never noticed this strange mistake

You post macro code complete and log complete

and post some screenshots please

{
“Name”: “TESTCAD”,
“CreationDate”: “2020-9-24”,
“Commands”: [
{
“Command”: “csvRead”,
“Target”: “xx.csv”,
“Value”: “”
},
{
“Command”: “selectFrame”,
“Target”: “relative=top”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “linkText=Inserir”,
“Value”: “”
},
{
“Command”: “selectFrame”,
“Target”: “id=FRAME”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “id=txtNome”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “id=txtNome”,
“Value”: “${!COL1}”
},
{
“Command”: “click”,
“Target”: “id=txtDataNascimento”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “id=txtDataNascimento”,
“Value”: “01/01/2000”
},
{
“Command”: “type”,
“Target”: “id=txtNomeMae”,
“Value”: “mae teste”
},
{
“Command”: “type”,
“Target”: “id=txtNomePai”,
“Value”: “pai teste”
},
{
“Command”: “selectFrame”,
“Target”: “id=menuframe”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “id=txtDoc”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “id=txtDoc”,
“Value”: “xxxxx”
},
{
“Command”: “clickAndWait”,
“Target”: “id=btnIncluir”,
“Value”: “”
},
{
“Command”: “selectFrame”,
“Target”: “relative=top”,
“Value”: “”
},
{
“Command”: “selectFrame”,
“Target”: “id=FRAME”,
“Value”: “”
},
{
“Command”: “selectFrame”,
“Target”: “id=menuframe”,
“Value”: “”
},
{
“Command”: “select”,
“Target”: “id=cboType”,
“Value”: “index=23”
},
{
“Command”: “type”,
“Target”: “id=txtDoc”,
“Value”: “1111111”
},
{
“Command”: “clickAndWait”,
“Target”: “id=btnIncluir”,
“Value”: “”
},
{
“Command”: “selectFrame”,
“Target”: “relative=top”,
“Value”: “”
},
{
“Command”: “selectFrame”,
“Target”: “id=FRAME”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “linkText=Endereços”,
“Value”: “”
},
{
“Command”: “selectFrame”,
“Target”: “id=menuframe”,
“Value”: “”
},
{
“Command”: “waitForPageToLoad”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “id=txtCep”,
“Value”: “09710000”
},
{
“Command”: “type”,
“Target”: “id=txtEnd”,
“Value”: “xxxxx”
},
{
“Command”: “type”,
“Target”: “id=txtCity”,
“Value”: “xxxxxxx”
},
{
“Command”: “select”,
“Target”: “id=cboType”,
“Value”: “label=RES”
},
{
“Command”: “type”,
“Target”: “id=txtNumber”,
“Value”: “111”
},
{
“Command”: “type”,
“Target”: “id=txtDistrict”,
“Value”: “xxx”
},
{
“Command”: “selectAndWait”,
“Target”: “id=cboState”,
“Value”: “index=25”
},
{
“Command”: “click”,
“Target”: “id=btnInsert”,
“Value”: “”
},
{
“Command”: “selectFrame”,
“Target”: “relative=top”,
“Value”: “”
},
{
“Command”: “selectFrame”,
“Target”: “id=FRAME”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “id=cboTypeUser”,
“Value”: “”
},
{
“Command”: “select”,
“Target”: “id=cboTypeUser”,
“Value”: “index=11”
},
{
“Command”: “click”,
“Target”: “id=btnInsert”,
“Value”: “”
}
]
}

  • [status]

Playing macro TESTCAD - Form, Endereço OK

  • [info]

Executing: | csvRead | xx.csv | |

  • [info]

Executing: | selectFrame | relative=top | |

  • [info]

Executing: | click | linkText=Inserir | |

  • [info]

Executing: | selectFrame | id=FRAME | |

  • [info]

Executing: | type | id=txtNome | ${!COL1} |

  • [info]

Executing: | click | id=txtDataNascimento | |

  • [info]

Executing: | type | id=txtDataNascimento | 01/01/2000 |

  • [info]

Executing: | type | id=txtNomeMae | mae teste |

  • [info]

Executing: | type | id=txtNomePai | pai teste |

  • [info]

Executing: | selectFrame | id=menuframe | |

  • [info]

Executing: | click | id=txtDoc | |

  • [info]

Executing: | type | id=txtDoc | xxxx |

  • [info]

Executing: | clickAndWait | id=btnIncluir | |

  • [info]

Executing: | selectFrame | relative=top | |

  • [info]

Executing: | selectFrame | id=FRAME | |

  • [info]

Executing: | selectFrame | id=menuframe | |

  • [info]

Executing: | select | id=cboType | index=23 |

  • [info]

Executing: | type | id=txtDoc | 1111111 |

  • [info]

Executing: | clickAndWait | id=btnIncluir | |

  • [info]

Executing: | selectFrame | relative=top | |

  • [info]

Executing: | selectFrame | id=FRAME | |

  • [info]

Executing: | click | linkText=Endereços | |

  • [info]

Executing: | selectFrame | id=menuframe | |

  • [info]

Executing: | waitForPageToLoad | | |

  • [info]

Executing: | type | id=txtCep | 09710000 |

  • [info]

Executing: | type | id=txtEnd | xxxxx |

  • [info]

Executing: | type | id=txtCity | xxxx |

  • [info]

Executing: | select | id=cboType | label=RES |

  • [info]

Executing: | type | id=txtNumber | 111|

  • [info]

Executing: | type | id=txtDistrict | Centro |

  • [info]

Executing: | selectAndWait | id=cboState | index=25 |

  • [info]

Executing: | click | id=btnInsert | |

  • [info]

Executing: | selectFrame | relative=top | |

  • [error]

[Line 36]: no access

  • [info]

Macro failed (Runtime 10.62s)

I think the problem is selectFrame it’s very hard to use frame in selenium

There are a large amount of frame changement checks all frame name and use few selectFrame command because usually can fails.

I have some simple macro that fails for selectFrame command, in normal site works.

Before go inside a frame return always in relative top frame

{
“Command”: “selectFrame”,
“Target”: “relative=top”,
“Value”: “”
},

In my opinione the problem are the frames (check all names).

I will close this thread. Lets continue the discussion in