Unable to click on object ‘Object Repository/Page_PolicyPlus/rect’ (Root cause: com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id: ‘Object Repository/Page_PolicyPlus/rect’ located by ‘By.xpath: id(“graphControl”)/div[@class=“yfiles-canvascontrol”]/div[@class=“yfiles-svgpanel”]/div[1]/svg[@class=“yfiles-canvascontrol-svg”]/g[1]/g[13]/g[@class=“org-node”]/rect[1]’ not found)

I get the above error. I have checked the XPATH using Spy Web and it is the same. I am evaluating a few tools before deciding which one to go for. Whilst I like the ease of use of the product, this is stopping me from completing the evaluation.

Any help would be greatly appreciated.



Can you check whether the xpath is unique.

Hi Rahul,

There are multiple rectangular boxes on the screen and in the XPATH given below

/g[1]/g[13] changes for the boxes, the one next to this box will be /g[1]/g[14] and the next /g[1]/g[15] and so on.



I had something similar, but i resolved by adding a wait 1 sec. WebUI.delay(1)

Hope it helps.

1 Like