Submit button that changes location

Hi there,

I am trying to figure out how to click (or clickAndWait) a submit button that changes its location just about every time it needs to be clicked. It always stays under the list, but the list is shorter or longer mattering the values which messes up the script.

Helpful Visual:

My Code:
Update:
{
“Command”: “clickAndWait”,
“Target”: “//[@id=“content”]/table/tbody/tr/td[2]/form/table/tbody/tr[27]/td/input[3]",
“Value”: “”
}
Submit:
{
“Command”: “clickAndWait”,
“Target”: "//
[@id=“content”]/table/tbody/tr/td[2]/form/table/tbody/tr[18]/td/input[1]”,
“Value”: “”
}

Thank you for any input!

Since you identify the button by locator, its location on the page should not matter. But if it also changed its ID (xpath) then read here how deal with changing xpaths.

Another option is to find the button visually, and the click on it with Click | #efp