healenium / healenium-appium

Self-healing library for Appium-based tests
Apache License 2.0
26 stars 9 forks source link

NullPointerException whenever trying to find an element with healenium 1.2.2 #42

Closed lknguyen0 closed 2 years ago

lknguyen0 commented 2 years ago

Hi all!

I am trying to use healenium in our project setup and am facing the following problem: After adding the healenium wrapper, I am getting a NullPointerException and the test steps can not be executed. This happens with healenium version 1.2.2. It works perfectly fine in my setup when using healenium version 1.2 or without the healenium driver wrapper in the same setup. I am using the calculator example on Android. The error occurs whenever I try to find an element, e. g.:

driver.findElement(MobileBy.id("digit_2")).click();

Error stack trace:

java.lang.NullPointerException: null value in entry: id=null at com.google.common.collect.CollectPreconditions.checkEntryNotNull(CollectPreconditions.java:34) at com.google.common.collect.SingletonImmutableBiMap.<init>(SingletonImmutableBiMap.java:42) at com.google.common.collect.ImmutableBiMap.of(ImmutableBiMap.java:73) at com.google.common.collect.ImmutableMap.of(ImmutableMap.java:120) at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:84)

In the following please also find the dependencies and versions I am using in this project:

I would appreciate any investigation and thanks in advance!

Alex-Reif commented 2 years ago

Hi @lknguyen0 , please try actual release version 1.2.3 and actual version of hlm-backend 3.2.1

lknguyen0 commented 2 years ago

Thanks, it worked out now