Ask a Question

SoapUI with Selenium Integration. How to add dependency in SOAPUI?

SOLVED
Jseban
Occasional Contributor

SoapUI with Selenium Integration. How to add dependency in SOAPUI?

I am trying to integrate SOAPUI with selenium so that I can open a web application and run a batch job before proceeding further. I have the latest soapui and latest chrome in my system with latest selenium driver.

 

I am getting the below error

java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V

 

Below is my groovy script.:-

 

import org.openqa.selenium.By
import org.openqa.selenium.WebDriver
import org.openqa.selenium.WebElement
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.support.ui.ExpectedCondition
import org.openqa.selenium.support.ui.WebDriverWait
import org.openqa.selenium.chrome.ChromeDriver


//WebDriver driver = new FirefoxDriver()

System.setProperty("webdriver.chrome.driver", "${path}/chromedriver.exe");
WebDriver driver = new ChromeDriver();

// And now use this to visit Google
driver.get("http://www.google.com")

 

Someone please help me to get this resolved?

1 ACCEPTED SOLUTION

Accepted Solutions
Jseban
Occasional Contributor

Re: SoapUI with Selenium Integration

Finally got it worked by replacing the old jars in SoapUI lib folder with the new versions of Selenium 3.3.1 dependency jars. Mainly guava-21.0.jar and http*.jar

View solution in original post

2 REPLIES 2
Jseban
Occasional Contributor

Re: SoapUI with Selenium Integration

After some googling found that I need to add dependency for Guava in SoapUI. Does any one know how to add dependency in SOAPUI?

Jseban
Occasional Contributor

Re: SoapUI with Selenium Integration

Finally got it worked by replacing the old jars in SoapUI lib folder with the new versions of Selenium 3.3.1 dependency jars. Mainly guava-21.0.jar and http*.jar

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: