Maven Webcollector Java.lang.ClassNotFoundException:org.openqa.selenium.remote.SessionNotFoundException

Source: Internet
Author: User

The following exception occurred while using Webcollector

Analysis is a matter of dependency, not only to add Selenium-java, but also to add htmlunit-driver dependencies, and be careful not to add selenium-htmlunit-driver

1<!--Selenium--2<dependency>3<groupId>org.seleniumhq.selenium</groupId>4<artifactId>selenium-java</artifactId>5<version>${selenium.version}</version>6</dependency>7<dependency>8<groupId>org.seleniumhq.selenium</groupId>9<artifactId>Htmlunit-driver</artifactId>Ten<version>${htmlunit-driver.version}</version> One</dependency> 

Exception resolved after adding Htmlunit-driver

Maven Webcollector Java.lang.ClassNotFoundException:org.openqa.selenium.remote.SessionNotFoundException

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.