Unable to launch chrome browser using selenium 3.1.0

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Unable to launch chrome browser using selenium 3.1.0

Sanoj S

OS:
Windows 7
Selenium Version:
3.1.0
Browser:
Chrome


I used below code for 3.0.1, it was working:


System.setProperty("webdriver.chrome.driver", "D:/chromedriver.exe");
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
driver = new ChromeDriver(capabilities);
System.out.println(driver);

The code is not working on selenium version 3.1.0


Error:

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

Have any work around in this version?


The information contained in this message is intended for the addressee only and may contain classified information. If you are not the addressee, please delete this message and notify the sender; you should not copy or distribute this message or disclose its contents to anyone. Any views or opinions expressed in this message are those of the individual(s) and not necessarily of the organization. No reliance may be placed on this message without written confirmation from an authorized representative of its contents. No guarantee is implied that this message or any attachment is virus free or has not been intercepted and amended.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/c172ad96-e591-42dc-80ee-fc6db46c29fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Unable to launch chrome browser using selenium 3.1.0

Abhineet Singh
Did you got the resolution for this error.I am getting same error while running code in Firefox

The code I am runningin 3.4.. version is


package MyTC;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class Google_TC1 {

public static void main(String[] args) {
WebDriver objWebDriver = new FirefoxDriver();
       objWebDriver.get("https://secure.vol1qa.visa.com/SitePages/GVOLHome.aspx");
       string =
       try {Thread.sleep(50000);}
       catch(Exception e) { }
       objWebDriver.close();
}

}


Thanks
Abhineet

On Tuesday, 21 February 2017 08:50:05 UTC+5:30, Sanoj S wrote:

OS:
Windows 7
Selenium Version:
3.1.0
Browser:
Chrome


I used below code for 3.0.1, it was working:


System.setProperty("webdriver.chrome.driver", "D:/chromedriver.exe");
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
driver = new ChromeDriver(capabilities);
System.out.println(driver);

The code is not working on selenium version 3.1.0


Error:

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

Have any work around in this version?


The information contained in this message is intended for the addressee only and may contain classified information. If you are not the addressee, please delete this message and notify the sender; you should not copy or distribute this message or disclose its contents to anyone. Any views or opinions expressed in this message are those of the individual(s) and not necessarily of the organization. No reliance may be placed on this message without written confirmation from an authorized representative of its contents. No guarantee is implied that this message or any attachment is virus free or has not been intercepted and amended.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/5f3fc0e8-e326-4da2-a221-3c044467fc0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Unable to launch chrome browser using selenium 3.1.0

Akshat Gupta
Hi Abhineet Singh,

Add
 `System.setProperty();`



On Tuesday, June 13, 2017 at 5:37:15 PM UTC+5:30, Abhineet Singh wrote:
Did you got the resolution for this error.I am getting same error while running code in Firefox

The code I am runningin 3.4.. version is


package MyTC;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class Google_TC1 {

public static void main(String[] args) {
WebDriver objWebDriver = new FirefoxDriver();
       objWebDriver.get("<a href="https://secure.vol1qa.visa.com/SitePages/GVOLHome.aspx" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fsecure.vol1qa.visa.com%2FSitePages%2FGVOLHome.aspx\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE1-js5V6QNaZaUICcMsJhL6CD0Hg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fsecure.vol1qa.visa.com%2FSitePages%2FGVOLHome.aspx\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE1-js5V6QNaZaUICcMsJhL6CD0Hg&#39;;return true;">https://secure.vol1qa.visa.com/SitePages/GVOLHome.aspx");
       string =
       try {Thread.sleep(50000);}
       catch(Exception e) { }
       objWebDriver.close();
}

}


Thanks
Abhineet

On Tuesday, 21 February 2017 08:50:05 UTC+5:30, Sanoj S wrote:

OS:
Windows 7
Selenium Version:
3.1.0
Browser:
Chrome


I used below code for 3.0.1, it was working:


System.setProperty("webdriver.chrome.driver", "D:/chromedriver.exe");
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
driver = new ChromeDriver(capabilities);
System.out.println(driver);

The code is not working on selenium version 3.1.0


Error:

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

Have any work around in this version?


The information contained in this message is intended for the addressee only and may contain classified information. If you are not the addressee, please delete this message and notify the sender; you should not copy or distribute this message or disclose its contents to anyone. Any views or opinions expressed in this message are those of the individual(s) and not necessarily of the organization. No reliance may be placed on this message without written confirmation from an authorized representative of its contents. No guarantee is implied that this message or any attachment is virus free or has not been intercepted and amended.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/737637dc-6ef6-4161-a15a-fa54df1f0b89%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.