UI can't find textbox when playing the macro

Hello everyone!
I am new at UI.Vision and I somehow can’t get my macro to work.

I am trying to select the last texbox to write something in it. When recording the macro, everything seems to be working fine. But when I am playing the macro, it somehow can’t find the textbox with the id I provided.
Is there a problem with textboxes, that can be sized by the user? Because all the other textboxes can be found with the id in the HTML code.

Unfortunately I can’t provide the website, as you need to be logged in.
Is there another way to find a textbox?

Here is the error code: * [error] [Line 24] timeout reached when looking for element ‘id=t90_info’

{
“Name”: “dfsfd”,
“CreationDate”: “2021-8-27”,
“Commands”: [
{
“Command”: “open”,
“Target”: “SCMT - EIS-Login”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “selectFrame”,
“Target”: “relative=top”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “selectFrame”,
“Target”: “id=f_hmen”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “click”,
“Target”: “linkText=Projekt”,
“Value”: “”,
“Targets”: [
“linkText=Projekt”,
“xpath=/html/body/table/tbody/tr/td[2]/a”,
“xpath=//td[2]/a”,
“css=body > table > tbody > tr > td:nth-child(2) > a”
],
“Description”: “”
},
{
“Command”: “selectFrame”,
“Target”: “relative=top”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “selectFrame”,
“Target”: “id=f_fmen”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “click”,
“Target”: “linkText=Zeiterfassung”,
“Value”: “”,
“Targets”: [
“linkText=Zeiterfassung”,
“xpath=/html/body/table/tbody/tr[3]/td/a”,
“xpath=//tr[3]/td/a”,
“css=body > table > tbody > tr:nth-child(3) > td > a”
],
“Description”: “”
},
{
“Command”: “selectFrame”,
“Target”: “relative=top”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “selectFrame”,
“Target”: “id=f_main”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “click”,
“Target”: “id=add”,
“Value”: “”,
“Targets”: [
“id=add”,
“name=add”,
“xpath=//[@id=“add”]",
“xpath=//input[@id=‘add’]”,
“xpath=//form[2]/table/tbody/tr/td[5]/input”,
“css=#add”
],
“Description”: “”
},
{
“Command”: “click”,
“Target”: “id=dateSel”,
“Value”: “”,
“Targets”: [
“id=dateSel”,
“name=dateSel”,
"xpath=//
[@id=“dateSel”]”,
“xpath=//input[@id=‘dateSel’]”,
“xpath=//table[2]/tbody/tr/td[2]/input[2]”,
“css=#dateSel”
],
“Description”: “”
},
{
“Command”: “click”,
“Target”: “name=cpMonth”,
“Value”: “”,
“Targets”: [
“name=cpMonth”,
“xpath=//[@id=“calendar”]/table/tbody/tr/td/center/table/tbody/tr/td/select",
“xpath=//select[@name=‘cpMonth’]”,
“xpath=//select”,
“css=#calendar > table > tbody > tr > td > center > table:nth-child(1) > tbody > tr > td:nth-child(1) > select”
],
“Description”: “”
},
{
“Command”: “select”,
“Target”: “name=cpMonth”,
“Value”: “label=June”,
“Targets”: [
“name=cpMonth”,
"xpath=//
[@id=“calendar”]/table/tbody/tr/td/center/table/tbody/tr/td/select”,
“xpath=//select[@name=‘cpMonth’]”,
“xpath=//select”,
“css=#calendar > table > tbody > tr > td > center > table:nth-child(1) > tbody > tr > td:nth-child(1) > select”
],
“Description”: “”
},
{
“Command”: “click”,
“Target”: “linkText=24”,
“Value”: “”,
“Targets”: [
“linkText=24”,
“xpath=//[@id=“calendar”]/table/tbody/tr/td/center/table[2]/tbody/tr[5]/td[4]/a",
“xpath=//tr[5]/td[4]/a”,
“css=#calendar > table > tbody > tr > td > center > table:nth-child(2) > tbody > tr:nth-child(5) > td:nth-child(4) > a”
],
“Description”: “”
},
{
“Command”: “verifyElementPresent”,
“Target”: “id=t90_von”,
“Value”: “”,
“Targets”: [
"xpath=//
[@id=“filter_form”]/table[2]/tbody/tr[2]/td[4]/input”,
“xpath=//tr[2]/td[4]/input”,
“css=#filter_form > table:nth-child(6) > tbody > tr.tr-sbx-03 > td:nth-child(4) > input”
],
“Description”: “”
},
{
“Command”: “click”,
“Target”: “id=t90_von”,
“Value”: “”,
“Targets”: [
“id=t90_von”,
“name=t90_von”,
“xpath=//[@id=“t90_von”]",
“xpath=//input[@id=‘t90_von’]”,
“xpath=//tr[2]/td[2]/input”,
“css=#t90_von”
],
“Description”: “”
},
{
“Command”: “type”,
“Target”: “id=t90_von”,
“Value”: “09:00”,
“Targets”: [
“id=t90_von”,
“name=t90_von”,
"xpath=//
[@id=“t90_von”]”,
“xpath=//input[@id=‘t90_von’]”,
“xpath=//tr[2]/td[2]/input”,
“css=#t90_von”
],
“Description”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id=“buchung”]/table[2]/tbody/tr[3]/td[2]",
“Value”: “”,
“Targets”: [
"xpath=//
[@id=“buchung”]/table[2]/tbody/tr[3]/td[2]”,
“xpath=//tr[3]/td[2]”,
“css=#buchung > table.tbl-dta-01 > tbody > tr:nth-child(3) > td.td-dta-inp-01”
],
“Description”: “”
},
{
“Command”: “click”,
“Target”: “id=t90_bis”,
“Value”: “”,
“Targets”: [
“id=t90_bis”,
“name=t90_bis”,
“xpath=//[@id=“t90_bis”]",
“xpath=//input[@id=‘t90_bis’]”,
“xpath=//tr[3]/td[2]/input”,
“css=#t90_bis”
],
“Description”: “”
},
{
“Command”: “type”,
“Target”: “id=t90_bis”,
“Value”: “09:00”,
“Targets”: [
“id=t90_bis”,
“name=t90_bis”,
"xpath=//
[@id=“t90_bis”]”,
“xpath=//input[@id=‘t90_bis’]”,
“xpath=//tr[3]/td[2]/input”,
“css=#t90_bis”
],
“Description”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id=“buchung”]/table[2]/tbody/tr[3]/td[2]",
“Value”: “”,
“Targets”: [
"xpath=//
[@id=“buchung”]/table[2]/tbody/tr[3]/td[2]”,
“xpath=//tr[3]/td[2]”,
“css=#buchung > table.tbl-dta-01 > tbody > tr:nth-child(3) > td.td-dta-inp-01”
],
“Description”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id=“buchung”]/table[2]/tbody/tr[5]/td[2]/input[2]",
“Value”: “”,
“Targets”: [
"xpath=//
[@id=“buchung”]/table[2]/tbody/tr[5]/td[2]/input[2]”,
“xpath=//input[@value=’>>>’ and @type=‘button’ and @onclick=“oitSbOpen(‘sb012_arbeitspakete’, ‘sbFrame’, [‘beschreibung’, ‘t91_id’], this)”]”,
“xpath=//tr[5]/td[2]/input[2]”,
“css=#buchung > table.tbl-dta-01 > tbody > tr:nth-child(5) > td.td-dta-inp-01 > input.inp-lst-btn-01”
],
“Description”: “”
},
{
“Command”: “selectFrame”,
“Target”: “id=sbFrame”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id=“filter_form”]/table[2]/tbody/tr[2]/td[4]/input",
“Value”: “”,
“Targets”: [
"xpath=//
[@id=“filter_form”]/table[2]/tbody/tr[2]/td[4]/input”,
“xpath=//tr[2]/td[4]/input”,
“css=#filter_form > table:nth-child(6) > tbody > tr.tr-sbx-03 > td:nth-child(4) > input”
],
“Description”: “”
},
{
“Command”: “click”,
“Target”: “id=t90_info”,
“Value”: “”,
“Targets”: [
“id=t90_info”,
“name=t90_info”,
“xpath=//[@id=“t90_info”]",
“xpath=//textarea[@id=‘t90_info’]”,
“xpath=//textarea”,
“css=#t90_info”
],
“Description”: “”
},
{
“Command”: “click”,
“Target”: “id=t90_info”,
“Value”: “”,
“Targets”: [
“id=t90_info”,
“name=t90_info”,
"xpath=//
[@id=“t90_info”]”,
“xpath=//textarea[@id=‘t90_info’]”,
“xpath=//textarea”,
“css=#t90_info”
],
“Description”: “”
},
{
“Command”: “type”,
“Target”: “id=t90_info”,
“Value”: “hallo”,
“Targets”: [
“id=t90_info”,
“name=t90_info”,
“xpath=//[@id=“t90_info”]",
“xpath=//textarea[@id=‘t90_info’]”,
“xpath=//textarea”,
“css=#t90_info”
],
“Description”: “”
},
{
“Command”: “clickAndWait”,
“Target”: "xpath=//
[@id=“buchung”]/table/tbody/tr/td[2]/input”,
“Value”: “”,
“Targets”: [
“xpath=//*[@id=“buchung”]/table/tbody/tr/td[2]/input”,
“xpath=//input[@value=‘Speichern’]”,
“xpath=//td[2]/input”,
“css=#buchung > table.tbl-dta-lbl-01 > tbody > tr > td.td-dta-act-01 > input:nth-child(1)”
],
“Description”: “”
}
]
}

I guess the default XPath is wrong because the ID keeps changing?

You can test it by re-recording the macro => Do you get the same XPath?

  • If yes, then my assumption is wrong
  • If no (= new XPath) then see here: Dynamic IDs

Hello ulrich,
thanks for answering.
I checked the HTML when resizing and it seems like the ID is staying the same.
Only the width and height changes.