This error message...
Exception in thread "main" org.apache.bcel.verifier.exc.AssertionViolatedException:
FOUND:
INTERNAL ERROR: Oops!
Exiting!!
at org.apache.bcel.verifier.exc.AssertionViolatedException.main(AssertionViolatedException.java:102)
...implies that there was a RuntimeException which should never be thrown and as per the documentation such exception is thrown due to an INTERNAL ERROR
of BCEL's class file verifier JustIce
.
This exception and error is defined as:
public static void main(String[] args){
AssertionViolatedException ave = new AssertionViolatedException("Oops!");
ave.extendMessage("\nFOUND:\n\t","\nExiting!!\n");
throw ave;
}
Your code trials would have helped us to debug the issue in a better way. However this exception is thrown when BCEl tries to verify bytecode modifications and fails. Presumably you are using some jar(s)/tool(s) that uses BCEL to modify the bytecode your Java compiler generates. if you are using BCEL as a requirement you need to debug, why it breaks. If you are not using BCEL as a requirement you can try a either of the steps mentioned below:
Clean your Project Workspace through your IDE (Project
> Clean...
> Clean all projects
> OK
) and Rebuild your project with required dependencies only.
Add WebDriverWait bofore invoking sendKeys()
method as follows:
new WebDriverWait(driver, 20).until(ExpectedConditions.elementToBeClickable(By.cssSelector("button.nsg-button")))sendKeys("string");
- Create a fresh New Project, Rebuild your project with required dependencies only and execute your Tests.