1 Star2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...

By Rafaela Azevedo
Solution for the problem with error:
ERROR com.cme.brio.selenium.ScriptException: The Script has thrown exception which is handled properly. The Selenium instance is closed and if any other script requires context of this Selenium instance will also fail. Please see the stack trace in the log and underlying exceptions to know the root cause of this problem.
ERROR Caused by: java.lang.reflect.InvocationTargetException
ERROR Caused by: groovy.lang.MissingMethodException: No signature of method: is applicable for argument types: (java.awt.HeadlessException) values: [java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it.] Possible solutions: findResult(groovy.lang.Closure)
ERROR An error occured while executing the script. Reason: Exception thrown. Please see logs for the complete stack trace.

When you get his error, just put above the code with Toolkit this line:
System.setProperty(“java.awt.headless”, “false”); System.out.println(java.awt.GraphicsEnvironment.isHeadless());
Just this will enable the keys in whatever pc.
Bye bye :)


Category: Programming, QA, Test and Automation Stuffs, but this program performed an operation which requires it, enable press keys toolkit, error toolkit, No X11 DISPLAY variable was set

Você também pode querer ler

Comments are off for this post.