Trying to do Web application validation using Selenium in SOAPUI tool
Trying to do Web application validation using Selenium in SOAPUI tool but getting "NoSuchMethodError" error.
Below code i used:
Code:
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.By;
import org.openqa.selenium.*
//System.setProperty("webdriver.ie.driver", "C:\\Program Files (x86)\\SmartBear\\SoapUI-5.4.0\\bin\\ext\\IEDriverServer.exe")
System.setProperty("webdriver.chrome.driver", "C:\\Program Files\\SmartBear\\SoapUI-5.5.0\\bin\\ext\\chromedriver.exe")
//def driver = new InternetExplorerDriver()
def driver = new ChromeDriver()
driver.get("https://google.co.in")
Error:
java.lang.NoSuchMethodError: com.google.common.collect.ImmutableMap.of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap; error at line: 10
Im using SOAPUI 5.5 version and done following steps:
- Download selenium-server-standalone-2.41.0 jar - selenium-standalone-server+IEDriver
- Download chromedriver_win32_2.26 - chromedriver
- Download httpClient_4.3.4 - httpclint
Kept all the jar file inside bin/ext folder and restarted my soapui but getting same error.