I am picking up a button with “NM.GetElement” and it picks it up correctly. But when I run the project the button changes ID every time you reload the page and OpenRPA does not find the button.
I have tried what you say in several ways and I can’t get it to work.
OpenRPA returns the following error:
{
“stack”: “Error: Failed to execute ‘evaluate’ on ‘Document’: The string ‘//button[contains(text(),"Crear la "]’ is not a valid XPath expression.\n at getelements (chrome-extension://hpnihnhlcnfejboocnckgchjdofeaphe/content.js:2715:41)\n at runtimeOnMessage (chrome-extension://hpnihnhlcnfejboocnckgchjdofeaphe/content.js:2490:26)”
}
The button text is: “Crear la Petición”. I thought it could fail because of the “ó” character, but it still fails, I have tried escaping the double quotes, using single quotes etc… But nothing works.
I have tried what you say in several ways and I can’t get it to work.
OpenRPA returns the following error:
[17:22:50.461][Output] Create EasyVista Ticket failed at 1.112 in 00:27.165
# {
"stack": "Error: Failed to execute 'evaluate' on 'Document': The string '//button[@titlte=contains(text(),\"Crear la Petición\"]/a' is not a valid XPath expression.\n at getelements (chrome-extension://hpnihnhlcnfejboocnckgchjdofeaphe/content.js:2715:41)\n at runtimeOnMessage (chrome-extension://hpnihnhlcnfejboocnckgchjdofeaphe/content.js:2490:26)"
}
The button text is: “Crear la Petición”. I thought it could fail because of the “ó” character, but it still fails, I have tried escaping the double quotes, using single quotes etc… But nothing works.
The html of the web is the following:
type or paste code here<button type="button" class="picto-button btn btn-md btn-primary" title="Crear la Petición " onclick="$.WizardAjax.openDialog('PHPSESSID=YYY&init_wizard=true&guid=SSS');" style="cursor: pointer; white-space: nowrap; width: auto;" id="21690167a08a54eda52" zn_id="12"><a style="white-space: nowrap;" href="#" onclick="$.WizardAjax.openDialog('PHPSESSID=YYY&init_wizard=true&guid=SSS');if (window.event != undefined) {var event=window.event;} event.cancelBubble = true;" zn_id="13">Crear la Petición</a></button>
sorry I posted an error from one of the tests I did, the error I get when I test what you said is this:
[17:30:22.678][Output] Create EasyVista Ticket failed at 1.112 in 00:24.829
# {
"stack": "Error: Failed to execute 'evaluate' on 'Document': The string '//button[contains(text(),\"Crear la Petición\"]/a' is not a valid XPath expression.\n at getelements (chrome-extension://hpnihnhlcnfejboocnckgchjdofeaphe/content.js:2715:41)\n at runtimeOnMessage (chrome-extension://hpnihnhlcnfejboocnckgchjdofeaphe/content.js:2490:26)"
}