Confusion about selenium 3 and gecko

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

Confusion about selenium 3 and gecko

Greg Martz-2
I'm trying to get gecko to ignore bad ssl certificates.  I had it working in firefox 42 with Selenium 2.53.1.  Upgraded to Selenium 3.0.1, Firefox 52 and gecko 0.14.0 and now I can't load SSL pages.  Looking at a trace message, this is what is being returned:

org.openqa.selenium.WebDriverException: Error loading page
Build info: version: '3.2.0', revision: '8c03df6b79', time: '2017-02-23 10:51:31 +0000'
System info: host: 'L7EIS-DEV504', ip: '172.21.229.107', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_121'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{rotatable=false, raisesAccessibilityExceptions=false, marionette=true, appBuildId=20160604131506, version=, platform=XP, proxy={}, command_id=1, specificationLevel=0, acceptSslCerts=false, browserVersion=47.0, platformVersion=6.1, XULappId={ec8030f7-c20a-464f-9b0e-13a3a9e97384}, browserName=Firefox, takesScreenshot=true, takesElementScreenshot=true, platformName=Windows_NT, device=desktop, firefox_profile=UEsDBBQACAgIAFl5Z0oAAAAAAAAAA...}]
Session ID: 3be771e2-8952-41bf-98bf-566f43dc4c8f

Note that acceptSslCerts is false, and the browser shows as version 47.0 (not 52).  Here is my code:

String firefoxLocation = System.getenv("ProgramFiles(X86)") + "\\Mozilla Firefox_52\\firefox.exe";
String geckoLocation = "..\\common\\gecko\\geckodriver.exe";

System.setProperty("webdriver.gecko.driver", geckoLocation);
System.setProperty("webdriver.firefox.bin", firefoxLocation);
System.setProperty("webdriver.reap_profile", "false");

//Set the capabilities
DesiredCapabilities dc = DesiredCapabilities.firefox();
dc.setCapability("marionette", true);
dc.setCapability(CapabilityType.ACCEPT_SSL_CERTS, "true");
dc.setCapability("acceptSslCerts", true);

//Set the profile
FirefoxProfile profile= new FirefoxProfile();
profile.setAcceptUntrustedCertificates(true);
profile.setAssumeUntrustedCertificateIssuer(true);

//Disable Firefox Auto-Updating
profile.setPreference("app.update.auto", false);
profile.setPreference("app.update.enabled", false);

dc.setCapability(FirefoxDriver.PROFILE, profile);
driver = new FirefoxDriver(dc);
Log.info("*****Opened Firefox non-debug");



Thanks!
Greg

Greg Martz
Test Analyst III - QA Automation Developer  |  (425)416-5039  |  [hidden email] 

"Confidentiality Notice:  This e-mail message, including any attachments, is for the sole use to the intended recipient(s) and may contain confidential and privileged information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message."

--
You received this message because you are subscribed to the Google Groups "testng-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].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Confusion about selenium 3 and gecko

Vimal Raj
Hi Greg,

You might have to post this question in selenium user forum. This forum is for testng.

Thanks
Vimalraj 

Sent from my iPhone

On Mar 8, 2017, at 7:47 PM, Greg Martz <[hidden email]> wrote:

I'm trying to get gecko to ignore bad ssl certificates.  I had it working in firefox 42 with Selenium 2.53.1.  Upgraded to Selenium 3.0.1, Firefox 52 and gecko 0.14.0 and now I can't load SSL pages.  Looking at a trace message, this is what is being returned:

org.openqa.selenium.WebDriverException: Error loading page
Build info: version: '3.2.0', revision: '8c03df6b79', time: '2017-02-23 10:51:31 +0000'
System info: host: 'L7EIS-DEV504', ip: '172.21.229.107', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_121'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{rotatable=false, raisesAccessibilityExceptions=false, marionette=true, appBuildId=20160604131506, version=, platform=XP, proxy={}, command_id=1, specificationLevel=0, acceptSslCerts=false, browserVersion=47.0, platformVersion=6.1, XULappId={ec8030f7-c20a-464f-9b0e-13a3a9e97384}, browserName=Firefox, takesScreenshot=true, takesElementScreenshot=true, platformName=Windows_NT, device=desktop, firefox_profile=UEsDBBQACAgIAFl5Z0oAAAAAAAAAA...}]
Session ID: 3be771e2-8952-41bf-98bf-566f43dc4c8f

Note that acceptSslCerts is false, and the browser shows as version 47.0 (not 52).  Here is my code:

String firefoxLocation = System.getenv("ProgramFiles(X86)") + "\\Mozilla Firefox_52\\firefox.exe";
String geckoLocation = "..\\common\\gecko\\geckodriver.exe";

System.setProperty("webdriver.gecko.driver", geckoLocation);
System.setProperty("webdriver.firefox.bin", firefoxLocation);
System.setProperty("webdriver.reap_profile", "false");

//Set the capabilities
DesiredCapabilities dc = DesiredCapabilities.firefox();
dc.setCapability("marionette", true);
dc.setCapability(CapabilityType.ACCEPT_SSL_CERTS, "true");
dc.setCapability("acceptSslCerts", true);

//Set the profile
FirefoxProfile profile= new FirefoxProfile();
profile.setAcceptUntrustedCertificates(true);
profile.setAssumeUntrustedCertificateIssuer(true);

//Disable Firefox Auto-Updating
profile.setPreference("app.update.auto", false);
profile.setPreference("app.update.enabled", false);

dc.setCapability(FirefoxDriver.PROFILE, profile);
driver = new FirefoxDriver(dc);
Log.info("*****Opened Firefox non-debug");



Thanks!
Greg

Greg Martz
Test Analyst III - QA Automation Developer  |  (425)416-5039  |  [hidden email] 

"Confidentiality Notice:  This e-mail message, including any attachments, is for the sole use to the intended recipient(s) and may contain confidential and privileged information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message."

--
You received this message because you are subscribed to the Google Groups "testng-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].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-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].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Confusion about selenium 3 and gecko

Greg Martz-2
darn it, my apologies, selected the wrong group!


Thanks!
Greg

Greg Martz
Test Analyst III - QA Automation Developer  |  (425)416-5039  |  [hidden email] 

"Confidentiality Notice:  This e-mail message, including any attachments, is for the sole use to the intended recipient(s) and may contain confidential and privileged information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message."


On Wed, Mar 8, 2017 at 6:37 AM, Vimal Gmail <[hidden email]> wrote:
Hi Greg,

You might have to post this question in selenium user forum. This forum is for testng.

Thanks
Vimalraj 

Sent from my iPhone

On Mar 8, 2017, at 7:47 PM, Greg Martz <[hidden email]> wrote:

I'm trying to get gecko to ignore bad ssl certificates.  I had it working in firefox 42 with Selenium 2.53.1.  Upgraded to Selenium 3.0.1, Firefox 52 and gecko 0.14.0 and now I can't load SSL pages.  Looking at a trace message, this is what is being returned:

org.openqa.selenium.WebDriverException: Error loading page
Build info: version: '3.2.0', revision: '8c03df6b79', time: '2017-02-23 10:51:31 +0000'
System info: host: 'L7EIS-DEV504', ip: '172.21.229.107', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_121'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{rotatable=false, raisesAccessibilityExceptions=false, marionette=true, appBuildId=20160604131506, version=, platform=XP, proxy={}, command_id=1, specificationLevel=0, acceptSslCerts=false, browserVersion=47.0, platformVersion=6.1, XULappId={ec8030f7-c20a-464f-9b0e-13a3a9e97384}, browserName=Firefox, takesScreenshot=true, takesElementScreenshot=true, platformName=Windows_NT, device=desktop, firefox_profile=UEsDBBQACAgIAFl5Z0oAAAAAAAAAA...}]
Session ID: 3be771e2-8952-41bf-98bf-566f43dc4c8f

Note that acceptSslCerts is false, and the browser shows as version 47.0 (not 52).  Here is my code:

String firefoxLocation = System.getenv("ProgramFiles(X86)") + "\\Mozilla Firefox_52\\firefox.exe";
String geckoLocation = "..\\common\\gecko\\geckodriver.exe";

System.setProperty("webdriver.gecko.driver", geckoLocation);
System.setProperty("webdriver.firefox.bin", firefoxLocation);
System.setProperty("webdriver.reap_profile", "false");

//Set the capabilities
DesiredCapabilities dc = DesiredCapabilities.firefox();
dc.setCapability("marionette", true);
dc.setCapability(CapabilityType.ACCEPT_SSL_CERTS, "true");
dc.setCapability("acceptSslCerts", true);

//Set the profile
FirefoxProfile profile= new FirefoxProfile();
profile.setAcceptUntrustedCertificates(true);
profile.setAssumeUntrustedCertificateIssuer(true);

//Disable Firefox Auto-Updating
profile.setPreference("app.update.auto", false);
profile.setPreference("app.update.enabled", false);

dc.setCapability(FirefoxDriver.PROFILE, profile);
driver = new FirefoxDriver(dc);
Log.info("*****Opened Firefox non-debug");



Thanks!
Greg

Greg Martz
Test Analyst III - QA Automation Developer  |  (425)416-5039  |  [hidden email] 

"Confidentiality Notice:  This e-mail message, including any attachments, is for the sole use to the intended recipient(s) and may contain confidential and privileged information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message."

--
You received this message because you are subscribed to the Google Groups "testng-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].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-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].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-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].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Loading...