--
You received this message because you are subscribed to the Google Groups "Selenium - Automated Software Testing" group.
To post to this group, send email to selenium-...@googlegroups.com.
To unsubscribe from this group, send email to selenium-test-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-test-tool?hl=en.
-trustAllSSLCertificates
Refer this blog for more info:Please try if you are running your script in firefox:
FirefoxProfile firefoxProfile = new FirefoxProfile();
firefoxProfile.setAssumeUntrustedCertificateIssuer(false);
Webdriver driver = new FirefoxDriver(firefoxProfile);
~Gurdarshan
I am having the same problem, but i use Selenium WebDriver .NET with
CSharp and NUnit.
I created a code with FirefoxProfileManager, but the problem remains.
When I ran the tests, the certificate is not recognized.
Can anybody help me?
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using NUnit.Framework;
using Selenium;
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.IE;
using OpenQA.Selenium.Chrome;
namespace AutomacaoWalmartB2B.Home.Config
{
[TestFixture]
class ConfigSelenium
{
public static ISelenium selenium;
private IWebDriver driver;
public static String IP_SERVER = "qa.site.walmart.com.br";
[SetUp]
public void SetupTest()
{
#region Definition of the Firefox profile to avoid
certificate errors
FirefoxProfileManager profileManager = new
FirefoxProfileManager();
FirefoxProfile profile =
profileManager.GetProfile("automacaoWalmart");
#endregion
String servidor = "http://" + IP_SERVER + "/";
driver = new FirefoxDriver(profile);
selenium = new WebDriverBackedSelenium(driver, servidor);
selenium.Start();
selenium.WindowMaximize();
}
[TearDown]
public void TeardownTest()
{
//driver.Quit();
}
}
}
Thanks
Thiago Alessandro
Sao Paulo, Brazil
On 21 nov, 13:53, Walter Gorlitz <wal...@gorlitz.ca> wrote:
> Does the site have a valid certificate? It could be trying to inform you
> that the certificate is not recognized.
> When I ran my first tests in Firefox it worked when recording but then
> failed when playing back after scripting. I had to launch Firefox with
> profilemanager and add an exception for the domain under test. After that,
> I was able to run the tests successfully. Don't forget to run
> profilemanager again afterwards to select your default profile.
>
> Walter
>