error java lang IncompatibleClassChangeError rg openqa selenium remote RemoteWebElement can not implement org openqa selenium WebElement because it is not an interface

0 votes

 I am trying to run simple script and getting this error: 

1592462763876 mozrunner::runner INFO Running command: "C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe" "-marionette" "-foreground" "-no-remote" "-profile" "C:\\Users\\hpinko\\AppData\\Local\\Temp\\rust_mozprofilelB6aFs"

console.error: Enterprise Policies: 

  Unknown policy: HomepageDisplay

console.error: Enterprise Policies: 

  Unknown policy: CustomHomepage

1592462764466 WARN Loading extension '': Reading manifest: Invalid extension permission: mozillaAddons

1592462764466 WARN Loading extension '': Reading manifest: Invalid extension permission: telemetry

1592462764466 WARN Loading extension '': Reading manifest: Invalid extension permission: resource://pdf.js/

1592462764466 WARN Loading extension '': Reading manifest: Invalid extension permission: about:reader*

JavaScript error: resource:///modules/sessionstore/SessionStore.jsm, line 1325: uncaught exception: 2147746065

1592462766164 Marionette INFO Listening on port 64908

1592462766489 Marionette WARN TLS certificate errors will be ignored for this session

Jun 18, 2020 9:46:06 AM org.openqa.selenium.remote.ProtocolHandshake createSession

INFO: Detected dialect: W3C

Exception in thread "main" java.lang.IncompatibleClassChangeError: class org.openqa.selenium.remote.RemoteWebElement can not implement org.openqa.selenium.WebElement, because it is not an interface (org.openqa.selenium.WebElement is in unnamed module of loader 'app')

at java.base/java.lang.ClassLoader.defineClass1(Native Method)

at java.base/java.lang.ClassLoader.defineClass(

at java.base/

at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(

at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(

at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(

at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(

at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(

at java.base/java.lang.ClassLoader.loadClass(

at org.openqa.selenium.remote.Dialect$2.getCommandCodec(

at org.openqa.selenium.remote.HttpCommandExecutor.execute(

at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(

at org.openqa.selenium.remote.RemoteWebDriver.execute(

at org.openqa.selenium.remote.RemoteWebDriver.startSession(

at org.openqa.selenium.remote.RemoteWebDriver.<init>(

at org.openqa.selenium.firefox.FirefoxDriver.<init>(

at org.openqa.selenium.firefox.FirefoxDriver.<init>(

at hp_test_package.Myclass.main(

script is:

package hp_test_package;

import org.openqa.selenium.By;

import org.openqa.selenium.WebDriver;

import org.openqa.selenium.WebElement;

import org.openqa.selenium.firefox.FirefoxDriver;

public class Myclass {

 public static void main(String[] args) throws InterruptedException 


     System.setProperty("webdriver.gecko.driver", "C:\\Users\\hpinko\\Desktop\\geckodriver.exe");

     WebDriver driver = new FirefoxDriver();




Jun 18, 2020 in Selenium by Edureka
• 120 points

This might be a dependency error. You are trying to implement something that's actually not an interface. 

For more  info refer to

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Selenium

0 votes
1 answer
0 votes
4 answers
0 votes
1 answer

Firefox Error: “Your connection is not secure” while launching driver with Selenium 3.0.1 using Java

Download Firefox 55 beta and set capabilities.setCapability("acceptInsecureCerts", true); Here ...READ MORE

answered Sep 17, 2018 in Selenium by Meci Matt
• 9,460 points
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,910 points
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP