Forum Discussion

lavnyaup's avatar
lavnyaup
New Contributor
3 years ago

Unable to Launch Chrome browser from Ready API

Hi All,

 

I am trying to launch Chrome browser from ready API groovy script.Copied chromedriver in ext folder for ready API and tried running the browser.

Getting below error

 

java.lang.IllegalAccessError: class org.openqa.selenium.net.UrlChecker tried to access private method 
'void com.google.common.util.concurrent.SimpleTimeLimiter.(java.util.concurrent.ExecutorService)'
(org.openqa.selenium.net.UrlChecker is in unnamed module of loader com.eviware.soapui.SoapUIExtensionClassLoader @1131aead;
com.google.common.util.concurrent.SimpleTimeLimiter is in unnamed module of loader 'app') error at line: 19

Below is the code  I have written.

import org.openqa.selenium.WebElement;
import org.openqa.selenium.By;
import org.openqa.selenium.chrome.*;

System.setProperty("webdriver.chrome.driver", "<pathtoChromeDriver>");
def driver = new ChromeDriver();
driver.get("https://us.norton.com/");

Could anyone help me in resolving this? I could not find any example of launching a chrome browser from ready api.

No RepliesBe the first to reply