Forum Discussion

Jseban's avatar
Jseban
Occasional Contributor
7 years ago
Solved

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?

  • 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

2 Replies

  • Jseban's avatar
    Jseban
    Occasional Contributor

    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's avatar
      Jseban
      Occasional Contributor

      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