Partial search in the search box

You have a org.openqa.selenium.StaleElementReferenceException: stale Element Reference. There are several questions & answers about it that can give you some feedback on your concern. Here is a sample:

Might even be as simple as adding before your “stale” element using:

WebUI.focus(findTestObject('myTestObject'))

or

WebUI.switchToDefaultContent()
WebUI.delay(2)