healenium / healenium-web

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

java.lang.NoSuchMethodError: org.jsoup.nodes.Document.root()Lorg/jsoup/nodes/Node #143

Closed VenkateshAchanta closed 3 years ago

VenkateshAchanta commented 3 years ago

We have integrated healenium our into framework during execution tests are failing with below Error.

Execution:

java.lang.NoSuchMethodError: org.jsoup.nodes.Document.root()Lorg/jsoup/nodes/Node; at com.epam.healenium.treecomparing.JsoupHTMLParser.parse(JsoupHTMLParser.java:25) at com.epam.healenium.SelfHealingEngine.parseTree(SelfHealingEngine.java:273) at com.epam.healenium.SelfHealingEngine.findNearest(SelfHealingEngine.java:240) at com.epam.healenium.SelfHealingEngine.findNewLocations(SelfHealingEngine.java:198) at com.epam.healenium.service.impl.AbstractHealingServiceImpl.healLocator(AbstractHealingServiceImpl.java:54) at com.epam.healenium.service.impl.HealingServiceImpl.heal(HealingServiceImpl.java:38) at com.epam.healenium.handlers.proxy.BaseHandler.lookUp(BaseHandler.java:93) at com.epam.healenium.handlers.proxy.BaseHandler.findElement(BaseHandler.java:58) at com.epam.healenium.handlers.proxy.SelfHealingProxyInvocationHandler.invoke(SelfHealingProxyInvocationHandler.java:39) at com.sun.proxy.$Proxy27.findElement(Unknown Source)

Healenium Web Dependency:

<dependency>
        <groupId>com.epam.healenium</groupId>
        <artifactId>healenium-web</artifactId>
        <version>3.1.5</version>
</dependency>
ElenaStepuro commented 3 years ago

Hello @VenkateshAchanta ! I wonder if you could provide more information so that we can reproduce this issue. Which hlm-backend version do you use? Is it the full stack trace? Which element tries to heal?

rohitgera15 commented 3 years ago

HI I am also getting the same issue. can you please help in below. No error message is displayed only displayed trying to heal and script getting failed.

ElenaStepuro commented 3 years ago

Hello @VenkateshAchanta and @rohitgera15 ! Please, updating the Jsoup version to 1.11.3 or higher for main project

amoldsdev commented 1 year ago

getting same error

mohitniet commented 2 months ago

I am getting below error while trying to heal in selenium web I am using below Maven dependcy dependency>

com.epam.healenium
<artifactId>healenium-web</artifactId>
<version>3.4.2</version>

org.seleniumhq.selenium selenium-java 4.8.3

org.jsoup.nodes.Document.root()Lorg/jsoup/nodes/Node

xception in thread "main" java.lang.NoSuchMethodError: org.jsoup.nodes.Document.root()Lorg/jsoup/nodes/Node; at com.epam.healenium.treecomparing.JsoupHTMLParser.parse(JsoupHTMLParser.java:25) at com.epam.healenium.SelfHealingEngine.parseTree(SelfHealingEngine.java:146) at com.epam.healenium.processor.HealingProcessor.execute(HealingProcessor.java:35) at com.epam.healenium.processor.BaseProcessor.process(BaseProcessor.java:42) at com.epam.healenium.processor.BaseProcessor.process(BaseProcessor.java:50) at com.epam.healenium.processor.BaseProcessor.process(BaseProcessor.java:50) at com.epam.healenium.handlers.proxy.BaseHandler.findElement(BaseHandler.java:60) at com.epam.healenium.handlers.proxy.SelfHealingProxyInvocationHandler.invoke(SelfHealingProxyInvocationHandler.java:39) at com.sun.proxy.$Proxy6.findElement(Unknown Source)

mohitniet commented 2 months ago

We have integrated healenium our into framework during execution tests are failing with below Error.

Execution:

java.lang.NoSuchMethodError: org.jsoup.nodes.Document.root()Lorg/jsoup/nodes/Node; at com.epam.healenium.treecomparing.JsoupHTMLParser.parse(JsoupHTMLParser.java:25) at com.epam.healenium.SelfHealingEngine.parseTree(SelfHealingEngine.java:273) at com.epam.healenium.SelfHealingEngine.findNearest(SelfHealingEngine.java:240) at com.epam.healenium.SelfHealingEngine.findNewLocations(SelfHealingEngine.java:198) at com.epam.healenium.service.impl.AbstractHealingServiceImpl.healLocator(AbstractHealingServiceImpl.java:54) at com.epam.healenium.service.impl.HealingServiceImpl.heal(HealingServiceImpl.java:38) at com.epam.healenium.handlers.proxy.BaseHandler.lookUp(BaseHandler.java:93) at com.epam.healenium.handlers.proxy.BaseHandler.findElement(BaseHandler.java:58) at com.epam.healenium.handlers.proxy.SelfHealingProxyInvocationHandler.invoke(SelfHealingProxyInvocationHandler.java:39) at com.sun.proxy.$Proxy27.findElement(Unknown Source)

Healenium Web Dependency:

<dependency>
      <groupId>com.epam.healenium</groupId>
      <artifactId>healenium-web</artifactId>
      <version>3.1.5</version>
</dependency>

is your issue resolved ?