healenium / kubernetes

Apache License 2.0
2 stars 1 forks source link

Auto Healing doesn't work for pages traversed in #7

Closed kherath17 closed 11 months ago

kherath17 commented 11 months ago

I have setup Healenium with Proxy on my K8 Cluster and successfully works for single pages, but as soon as I navigate within a page auto healing doesn't work as expected even though the selector values are present in the db.

Log: : Trying to heal... 2023-11-09 08:33:10.461 DEBUG 1 - [8085-exec-7] healenium : [Find Element] Get reference element. UrlKey: 2023-11-09 08:33:10.461 DEBUG 1 - [8085-exec-7] healenium : [Get Reference Elements] Request: (GET) 2023-11-09 08:33:10.519 DEBUG 1 - [8085-exec-7] healenium : [Get Reference Elements] Response: ReferenceElementsDto(pageContent=null, unsuccessfulLocators=null) 2023-11-09 08:33:11.554 WARN 1 - [8085-exec-7] healenium : New element locators have not been found.\n Score property = 0.2 is bigger than healing's locator score 2023-11-09 08:33:11.562 ERROR 1 - [8085-exec-7] healenium : [Request Handler] Error during handle Proxy Request. Message: no such element: Unable to locate element: {"method":"xpath","selector":"//div[text()='Envir.....

But above successfully heals for first landing page

kherath17 commented 11 months ago

Fixed by https://github.com/healenium/healenium-web/pull/256