corki
16 years agoContributor
Working with GROOVY and SCRIPTOM - to use ( Explorer, Excel,.... )
Hi here is the code what I found on internet, and I dont know why it brings ERROR :
java.lang.NoSuchMethodError: org.codehaus.groovy.runtime.InvokerHelper.getInstance()Lorg/codehaus/groovy/runtime/Invoker;
--> this code shout OPEN explorer and load url provided in code. I have added SCRIPTOM 1.2 files into BIN, and LIB folders of soapUI and restarted it.
//-----------------------------------------------------------------
import org.codehaus.groovy.scriptom.ActiveXProxy
// instantiate Internet Explorer
def explorer = new ActiveXProxy("InternetExplorer.Application")
// set its properties
explorer.Visible = true;
explorer.AddressBar = true;
// navigate to a site by calling the Navigate() method
explorer.Navigate("http://glaforge.free.fr/weblog");
// ----------------------------------------------------------------
java.lang.NoSuchMethodError: org.codehaus.groovy.runtime.InvokerHelper.getInstance()Lorg/codehaus/groovy/runtime/Invoker;
--> this code shout OPEN explorer and load url provided in code. I have added SCRIPTOM 1.2 files into BIN, and LIB folders of soapUI and restarted it.
//-----------------------------------------------------------------
import org.codehaus.groovy.scriptom.ActiveXProxy
// instantiate Internet Explorer
def explorer = new ActiveXProxy("InternetExplorer.Application")
// set its properties
explorer.Visible = true;
explorer.AddressBar = true;
// navigate to a site by calling the Navigate() method
explorer.Navigate("http://glaforge.free.fr/weblog");
// ----------------------------------------------------------------