Katalon is not able to locate elements even though the xpath is showing valid in DOM structure

Katalon studio is showing com.kms.katalon.core.webui.exception.WebElementNotFoundException even when the xpath is showing correct in DOM structure.


DOM structure Screenshot-

this issue is happening after salesforce summer release 24.the same xpath was working fine before.
is anyone facing the same issue?

1 Like

Hi there,

Thank you very much for your topic. Please note that it may take a little while before a member of our community or from Katalon team responds to you.


Can you do a quick test to your code to see if you have a latency issue? Before the statement that is throwing your WebElementNotFoundException, can you put:

// Switch to iframe and then carry on with your code 
WebUI.switchToFrame(findTestObject('CS_Lighting/CaseCommunication/ParentIFrame'), 10)

If your code does not have an issue afterwards, then you need to put in wait statements to slow your code down. If you still get an error, then we need to investigate further.