Could you please help me to understand why this type not accessible is?
Versions:
Eclips / Photon Release (4.8.0)
selenium-java-3.14.0
JavaSE-10
Could you please help me to understand why this type not accessible is?
Versions:
Eclips / Photon Release (4.8.0)
selenium-java-3.14.0
JavaSE-10
You shouldn't be using that Assert
class in your code. It is internal to the Java compiler, and not intended for reuse.
There have been warnings in the Sun / Oracle documentation for many years that user code should not depend on the internal com.sun.*
APIs. Starting with Java 9, access to these and other internal APIs have been closed off by the module system. It is possible to allow the access ... but you shouldn't if you have an alternative.
My bet is that you should be using Assert
from the JUnit APIs, and that you have picked up the bogus import
by accepting an (incorrect) auto-correction suggested by your IDE.
The best solution is to change your code to use org.junit.Assert
or something equivalent.