healenium / healenium-web

Self-healing library for Selenium Web-based tests
Apache License 2.0
170 stars 40 forks source link

Healing is not working for shadow root element #218

Closed rama3278 closed 1 year ago

rama3278 commented 1 year ago

Describe the bug

Healing is not working when shadow root element id or class attribute is changed.

How to reproduce the issue

launch any url which has shadow root elements in it and try tp access any element from the shadow root whose id or class name is updated.

Found that healing is only working for non shadow root elements. Failing with shadow root elements

Do we have support for shadow root elements ?

driver.get("http://127.0.0.1:5500/index.html");
        WebElement ele = driver.findElement(By.xpath("//parent-shadow")).getShadowRoot()
        .findElement(By.cssSelector("div")).findElement(By.cssSelector("child-shadow")).getShadowRoot()
        .findElement(By.cssSelector("div.child"));

For instance if the chaild class is updated then healing is not working.

Logs appeared during using Healenium

.

Expected behavior

No response

Actual behavior

No response

Healenium Web version

3.2

Healenium Backend version

3.2.5

Selenium version

No response

Platform

java

Properties file

No response

Additional context

No response

Alex-Reif commented 1 year ago

Hi @rama3278 , Unfortunately Healenium doesn't support shadowRoot elements