Selenium opens randomly the given url of application in Firefox
I am launching a Selenium test (the launcher test below), in order to connect to the application a certificate should be selected, so I've used firefox -p
and I have saved the certificate for the chosen profile.
However, when I ran the test it worked 2 times. Now the browser cannot connect to the URL anymore.
System :
Geckodriver: :0.23.0
Platform: Linux
Firefox: 63.0
Selenium: 3.11.0
System.setProperty(FirefoxDriver.SystemProperty.DRIVER_USE_MARIONETTE,"true");
DesiredCapabilities capabilities = DesiredCapabilities.firefox();
capabilities.setCapability("marionette", true);
ProfilesIni profile = new ProfilesIni();
FirefoxProfile profiles = profile.getProfile(profil);
FirefoxOptions options = new FirefoxOptions();
options.setProfile(profiles);
options.addPreference("marionette.logging", "{level: trace}");
options.addPreference("xpinstall.signatures.required", false);
options.addPreference("browser.startup.homepage_override.mstone", "ignore");
options.addPreference("geckodriver.logging", "{level: trace}")
driver.manage().window().maximize();
//driver.manage().timeouts().implicitlyWait(implicitwait, TimeUnit.SECONDS);
this.wait = new WebDriverWait(driver, implicitwait);
return driver;
}
The suite class :
@BeforeClass
public void initiate() throws Exception {
pool = Executors.newFixedThreadPool(thread);
final String GECKODRIVER_PATH = "/home/geckodriver";
if ( System.getProperty("webdriver.gecko.driver") == null)
System.setProperty("webdriver.gecko.driver", GECKODRIVER_PATH);
@Test(priority = 1, testName = "test", description = "test")
public void testCase001() throws Exception {
testSuites = execute.getScenario(sec1, firefoxDriver);
pool.invokeAll(testSuites); }
@AfterClass(alwaysRun=true)
public void terminate(){
pool.shutdown();
}
The launcher test :
@Profildetests(Profil = "Profile1")
public class extends Suiteclass {
@Test(priority = 1, testName = "ddd", description = "dddd")
public void test() throws InterruptedException, AWTException {
remoteWebDriver.get(ExecutionProperties.getInstance().getApplication());
Thread.sleep(4000);
firefoxCertificat certificat = new
firefoxCertificat(remoteWebDriver);
Workcreation workcreation = new Workcreation(remoteWebDriver);
........}}
I don't know what i should do with that
Stacktrace
org.openqa.selenium.WebDriverException: Reached error page: about:neterror?e=netTimeout&u=https%3A//10.114.2.119/dcfc=UTF-8&f=regular&d=Le%20serveur%20%C3%A0%20l%E2%80%99adresse%2010.114.2.119%20met%20trop%20de%20temps%20%C3%A0%20r%C3%A9pondre.
Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:26:55.152Z'
System info: host: 'teee', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-39-generic', java.version: '1.8.0_77'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 63.0, javascriptEnabled: true, moz:accessibilityChecks: false, moz:geckodriverVersion: 0.23.0, moz:headless: false, moz:processID: 7154, moz:profile: /tmp/rust_mozprofile.zyf9Mi..., moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, platformVersion: 4.15.0-39-generic, rotatable: false, setWindowRect: true, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}
Session ID: 0ef4a7ea-b2a1-46bf-8c3d-084123976bd7
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:545)
at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:273)
selenium firefox automation profile
add a comment |
I am launching a Selenium test (the launcher test below), in order to connect to the application a certificate should be selected, so I've used firefox -p
and I have saved the certificate for the chosen profile.
However, when I ran the test it worked 2 times. Now the browser cannot connect to the URL anymore.
System :
Geckodriver: :0.23.0
Platform: Linux
Firefox: 63.0
Selenium: 3.11.0
System.setProperty(FirefoxDriver.SystemProperty.DRIVER_USE_MARIONETTE,"true");
DesiredCapabilities capabilities = DesiredCapabilities.firefox();
capabilities.setCapability("marionette", true);
ProfilesIni profile = new ProfilesIni();
FirefoxProfile profiles = profile.getProfile(profil);
FirefoxOptions options = new FirefoxOptions();
options.setProfile(profiles);
options.addPreference("marionette.logging", "{level: trace}");
options.addPreference("xpinstall.signatures.required", false);
options.addPreference("browser.startup.homepage_override.mstone", "ignore");
options.addPreference("geckodriver.logging", "{level: trace}")
driver.manage().window().maximize();
//driver.manage().timeouts().implicitlyWait(implicitwait, TimeUnit.SECONDS);
this.wait = new WebDriverWait(driver, implicitwait);
return driver;
}
The suite class :
@BeforeClass
public void initiate() throws Exception {
pool = Executors.newFixedThreadPool(thread);
final String GECKODRIVER_PATH = "/home/geckodriver";
if ( System.getProperty("webdriver.gecko.driver") == null)
System.setProperty("webdriver.gecko.driver", GECKODRIVER_PATH);
@Test(priority = 1, testName = "test", description = "test")
public void testCase001() throws Exception {
testSuites = execute.getScenario(sec1, firefoxDriver);
pool.invokeAll(testSuites); }
@AfterClass(alwaysRun=true)
public void terminate(){
pool.shutdown();
}
The launcher test :
@Profildetests(Profil = "Profile1")
public class extends Suiteclass {
@Test(priority = 1, testName = "ddd", description = "dddd")
public void test() throws InterruptedException, AWTException {
remoteWebDriver.get(ExecutionProperties.getInstance().getApplication());
Thread.sleep(4000);
firefoxCertificat certificat = new
firefoxCertificat(remoteWebDriver);
Workcreation workcreation = new Workcreation(remoteWebDriver);
........}}
I don't know what i should do with that
Stacktrace
org.openqa.selenium.WebDriverException: Reached error page: about:neterror?e=netTimeout&u=https%3A//10.114.2.119/dcfc=UTF-8&f=regular&d=Le%20serveur%20%C3%A0%20l%E2%80%99adresse%2010.114.2.119%20met%20trop%20de%20temps%20%C3%A0%20r%C3%A9pondre.
Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:26:55.152Z'
System info: host: 'teee', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-39-generic', java.version: '1.8.0_77'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 63.0, javascriptEnabled: true, moz:accessibilityChecks: false, moz:geckodriverVersion: 0.23.0, moz:headless: false, moz:processID: 7154, moz:profile: /tmp/rust_mozprofile.zyf9Mi..., moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, platformVersion: 4.15.0-39-generic, rotatable: false, setWindowRect: true, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}
Session ID: 0ef4a7ea-b2a1-46bf-8c3d-084123976bd7
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:545)
at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:273)
selenium firefox automation profile
add a comment |
I am launching a Selenium test (the launcher test below), in order to connect to the application a certificate should be selected, so I've used firefox -p
and I have saved the certificate for the chosen profile.
However, when I ran the test it worked 2 times. Now the browser cannot connect to the URL anymore.
System :
Geckodriver: :0.23.0
Platform: Linux
Firefox: 63.0
Selenium: 3.11.0
System.setProperty(FirefoxDriver.SystemProperty.DRIVER_USE_MARIONETTE,"true");
DesiredCapabilities capabilities = DesiredCapabilities.firefox();
capabilities.setCapability("marionette", true);
ProfilesIni profile = new ProfilesIni();
FirefoxProfile profiles = profile.getProfile(profil);
FirefoxOptions options = new FirefoxOptions();
options.setProfile(profiles);
options.addPreference("marionette.logging", "{level: trace}");
options.addPreference("xpinstall.signatures.required", false);
options.addPreference("browser.startup.homepage_override.mstone", "ignore");
options.addPreference("geckodriver.logging", "{level: trace}")
driver.manage().window().maximize();
//driver.manage().timeouts().implicitlyWait(implicitwait, TimeUnit.SECONDS);
this.wait = new WebDriverWait(driver, implicitwait);
return driver;
}
The suite class :
@BeforeClass
public void initiate() throws Exception {
pool = Executors.newFixedThreadPool(thread);
final String GECKODRIVER_PATH = "/home/geckodriver";
if ( System.getProperty("webdriver.gecko.driver") == null)
System.setProperty("webdriver.gecko.driver", GECKODRIVER_PATH);
@Test(priority = 1, testName = "test", description = "test")
public void testCase001() throws Exception {
testSuites = execute.getScenario(sec1, firefoxDriver);
pool.invokeAll(testSuites); }
@AfterClass(alwaysRun=true)
public void terminate(){
pool.shutdown();
}
The launcher test :
@Profildetests(Profil = "Profile1")
public class extends Suiteclass {
@Test(priority = 1, testName = "ddd", description = "dddd")
public void test() throws InterruptedException, AWTException {
remoteWebDriver.get(ExecutionProperties.getInstance().getApplication());
Thread.sleep(4000);
firefoxCertificat certificat = new
firefoxCertificat(remoteWebDriver);
Workcreation workcreation = new Workcreation(remoteWebDriver);
........}}
I don't know what i should do with that
Stacktrace
org.openqa.selenium.WebDriverException: Reached error page: about:neterror?e=netTimeout&u=https%3A//10.114.2.119/dcfc=UTF-8&f=regular&d=Le%20serveur%20%C3%A0%20l%E2%80%99adresse%2010.114.2.119%20met%20trop%20de%20temps%20%C3%A0%20r%C3%A9pondre.
Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:26:55.152Z'
System info: host: 'teee', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-39-generic', java.version: '1.8.0_77'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 63.0, javascriptEnabled: true, moz:accessibilityChecks: false, moz:geckodriverVersion: 0.23.0, moz:headless: false, moz:processID: 7154, moz:profile: /tmp/rust_mozprofile.zyf9Mi..., moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, platformVersion: 4.15.0-39-generic, rotatable: false, setWindowRect: true, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}
Session ID: 0ef4a7ea-b2a1-46bf-8c3d-084123976bd7
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:545)
at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:273)
selenium firefox automation profile
I am launching a Selenium test (the launcher test below), in order to connect to the application a certificate should be selected, so I've used firefox -p
and I have saved the certificate for the chosen profile.
However, when I ran the test it worked 2 times. Now the browser cannot connect to the URL anymore.
System :
Geckodriver: :0.23.0
Platform: Linux
Firefox: 63.0
Selenium: 3.11.0
System.setProperty(FirefoxDriver.SystemProperty.DRIVER_USE_MARIONETTE,"true");
DesiredCapabilities capabilities = DesiredCapabilities.firefox();
capabilities.setCapability("marionette", true);
ProfilesIni profile = new ProfilesIni();
FirefoxProfile profiles = profile.getProfile(profil);
FirefoxOptions options = new FirefoxOptions();
options.setProfile(profiles);
options.addPreference("marionette.logging", "{level: trace}");
options.addPreference("xpinstall.signatures.required", false);
options.addPreference("browser.startup.homepage_override.mstone", "ignore");
options.addPreference("geckodriver.logging", "{level: trace}")
driver.manage().window().maximize();
//driver.manage().timeouts().implicitlyWait(implicitwait, TimeUnit.SECONDS);
this.wait = new WebDriverWait(driver, implicitwait);
return driver;
}
The suite class :
@BeforeClass
public void initiate() throws Exception {
pool = Executors.newFixedThreadPool(thread);
final String GECKODRIVER_PATH = "/home/geckodriver";
if ( System.getProperty("webdriver.gecko.driver") == null)
System.setProperty("webdriver.gecko.driver", GECKODRIVER_PATH);
@Test(priority = 1, testName = "test", description = "test")
public void testCase001() throws Exception {
testSuites = execute.getScenario(sec1, firefoxDriver);
pool.invokeAll(testSuites); }
@AfterClass(alwaysRun=true)
public void terminate(){
pool.shutdown();
}
The launcher test :
@Profildetests(Profil = "Profile1")
public class extends Suiteclass {
@Test(priority = 1, testName = "ddd", description = "dddd")
public void test() throws InterruptedException, AWTException {
remoteWebDriver.get(ExecutionProperties.getInstance().getApplication());
Thread.sleep(4000);
firefoxCertificat certificat = new
firefoxCertificat(remoteWebDriver);
Workcreation workcreation = new Workcreation(remoteWebDriver);
........}}
I don't know what i should do with that
Stacktrace
org.openqa.selenium.WebDriverException: Reached error page: about:neterror?e=netTimeout&u=https%3A//10.114.2.119/dcfc=UTF-8&f=regular&d=Le%20serveur%20%C3%A0%20l%E2%80%99adresse%2010.114.2.119%20met%20trop%20de%20temps%20%C3%A0%20r%C3%A9pondre.
Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:26:55.152Z'
System info: host: 'teee', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-39-generic', java.version: '1.8.0_77'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 63.0, javascriptEnabled: true, moz:accessibilityChecks: false, moz:geckodriverVersion: 0.23.0, moz:headless: false, moz:processID: 7154, moz:profile: /tmp/rust_mozprofile.zyf9Mi..., moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, platformVersion: 4.15.0-39-generic, rotatable: false, setWindowRect: true, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}
Session ID: 0ef4a7ea-b2a1-46bf-8c3d-084123976bd7
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:545)
at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:273)
selenium firefox automation profile
selenium firefox automation profile
edited Nov 21 '18 at 15:02


Würgspaß
3,03411334
3,03411334
asked Nov 21 '18 at 14:46
MyriamMyriam
104
104
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53414576%2fselenium-opens-randomly-the-given-url-of-application-in-firefox%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53414576%2fselenium-opens-randomly-the-given-url-of-application-in-firefox%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown