Hi there,
I am having a very strange problem I can not figure out. I wrote a full script (see below) but Kantu keeps stopping at the following target “/html/body/p” every time. But when I then press “Execute this command” or “Run from here” it continues until the next “/html/body/p” and so on and on and on.
It opens a link and is supposed to paste text into a java script frame and then press the save button what opens the next question, so Kantu pastes the answer again and presses save and so on until all questions have been answered.
Sometimes it works what is the strange thing and then next time (99% of the times) it does not.
It’s hard to explain, hope someone can maybe start with given information to work towards a solution together with me. Thanks a lot already for any help and advice!
The website where I am running the macro needs a user login which I don’t really want to post public here. I understand that makes the issue not easier.
Its a table/frame with the following ID: //*[@id=“pnAssessment”]
These are 2 steps, the entire macro has over 50 which keep repeating like this.
{
"Command": "selectFrame",
"Target": "index=0",
"Value": ""
},
{
"Command": "click",
"Target": "/html/body/p",
"Value": ""
},
{
"Command": "editContent",
"Target": "/html/body",
"Value": "MY ENTERED TEXT HERE"
},
{
"Command": "selectFrame",
"Target": "relative=top",
"Value": ""
},
{
"Command": "clickAndWait",
"Target": "id=btnSave2",
"Value": ""
},
{
"Command": "selectFrame",
"Target": "index=0",
"Value": ""
},
{
"Command": "click",
"Target": "/html/body/p",
"Value": ""
},
{
"Command": "editContent",
"Target": "/html/body",
"Value": "MY ENTERED TEXT HERE"
},
{
"Command": "selectFrame",
"Target": "relative=top",
"Value": ""
},
{
"Command": "clickAndWait",
"Target": "id=btnSave2",
"Value": ""
},