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: star.sa.VerifyInstrument.failResults() 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:
Just this will enable the keys in whatever pc.
Bye bye 🙂