I could call the Webdriver instance in SOAP Groovy Script and approve the API with the user interface statements that follow below:
Step1: Go to the bin / ext directory to install SoapUI and drop your standalone selenium server files (all banks in this path will be downloaded to your path, you can add any jar files in this place and call them in Groovy Script)
C: Program Files / SmartBearSoapUI -Pro-4.6.4 / bin / ext
Jar file Name: selenium-server-standalone-2.40.0
Step 2. Create a new project in the SOAP user interface
Step 3: Add New Groovy Script Step
Step 4. Create your selenium driver using the Script below in Groovy Step (Groovy is built in Java, so all JAVA libraries and code will work as such)
import org.openqa.selenium.WebDriver
import org.openqa.selenium.firefox.FirefoxDriver
WebDriver driver = new FirefoxDriver();
driver.get("http://www.google.com ")
log.info("Pagee is: " + driver.getTitle())
driver.quit()
Step 5: run the script
- You may need to restart the soapui session for the first time.
API JAVA Webdriver, API REST
https://code.google.com/p/rest-assured/
, .