Hi good people,
My testcase has a line as line of code:
WebUI.sendKeys(findTestObject(‘Input’), Keys.chord(‘Text String’, Keys.ENTER )) this means I have to hit keyboard for my url to run.
When I run the testcase it passes but I am getting two red lines with content:
2023-08-03 23:52:04.869 INFO c.k.k.c.webui.common.WebUiCommonHelper - Unable to find the element located by ‘By.xpath: //*[matches(@id, ‘Input’)]’. Please recheck the objects properties to make sure the desired element is located.
2023-08-03 23:52:04.872 WARN c.k.k.c.webui.common.WebUiCommonHelper - [SELF-HEALING] Failed to find element with id ‘Object Repository/Input’. Try using Self-healing.
2023-08-03 23:52:05.895 INFO c.k.k.c.webui.common.WebUiCommonHelper - Unable to find the element located by 'By.xpath: '. Please recheck the objects properties to make sure the desired element is located.
2023-08-03 23:52:06.896 INFO c.k.k.c.webui.common.WebUiCommonHelper - [SELF-HEALING] No working XPath is found.
BELOW is the object settings
You haven’t showed the HTML source of your target HTML, so I am not very sure, but I guess your HTML has an <iframe> element. Your target element resides inside the <iframe>. In this case you need to pay special attention to the <iframe> but you are not doing so.
To be honest, no, I don’t understand your challenge.
The HTML you showed above contains no HTML element with id attribute with value Input. That is the very reason why you got an error
2023-08-03 23:52:04.869 INFO c.k.k.c.webui.common.WebUiCommonHelper -
Unable to find the element located by ‘By.xpath: //*[matches(@id, ‘Input’)]’. Please recheck the objects properties to make sure the desired element is located.