Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
17 years ago

importing org.codehaus.groovy.scriptom.ActiveXProxy

Hello,
I am trying to launch internet explore via groovy script within a soapui testcase to validate some registration URL. I read the groovy docs and followed their example and was able to launch IE using groovyconsole. However when I add the same script in soapui groovy I get an error at the import statement. Can you tell me where I am going wrong. Seems like I have to import some jar and dll files from the scriptcom zip bundle. The URL and groovy script is shown below.
http://groovy.codehaus.org/COM+Scripting

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
explorer.Navigate("http://glaforge.free.fr/weblog")
Thread.sleep(1000)
explorer.StatusText = "Guillaume Laforge's weblog"
Thread.sleep(2000)

// quit Internet Explorer
explorer.Quit()

Thanks

Ali

14 Replies