Chromedriver checks a different Temp folder than Chrome puts the DevToolsActivePort file due to 32/64 bit...
I'm trying to run Selenium/testNg tests against headless Chrome on a Windows 2008 R2 machine. I'm using the WebDriverManager library from Bonigarcia (https://github.com/bonigarcia/webdrivermanager) to hopefully make this independent from whatever version of Chrome the machine is using.
My code to instantiate the chromedriver is as follows:
WebDriverManager.chromedriver().setup();
// webDriver = new ChromeDriver();
ChromeOptions options = new ChromeOptions();
options.addArguments("--headless");
options.addArguments("--disable-gpu");
webDriver = new ChromeDriver(options);
The problem I'm having is that the Chromedriver is telling me the DevToolsActivePort file doesn't exist. On recommendation from Google at https://bugs.chromium.org/p/chromedriver/issues/detail?id=2483&can=2&start=0&num=100&q=&colspec=ID%20Status%20Pri%20Owner%20Summary&groupby=&sort=, I've used ProcMon to figure out what's going wrong.
What I've found is that Chrome is in fact creating the DevToolsActivePort file, in the Temp folder inside the System32 folder, while the Chromedriver is checking for the file in the Temp folder inside the SysWow64 folder. Since Chrome is a 64 bit version (and doesn't even have a 32 bit version anymore since a couple versions ago) and the ChromeDriver only has a 32-bit version that should work with both 32 and 64 bit versions of Chrome, they're effectively checking different Temp folders for the same file, which means they can't find each other.
Besides installing a 32 bit version of Chrome, is there a way to make it so they both check the right folder?
selenium
add a comment |
I'm trying to run Selenium/testNg tests against headless Chrome on a Windows 2008 R2 machine. I'm using the WebDriverManager library from Bonigarcia (https://github.com/bonigarcia/webdrivermanager) to hopefully make this independent from whatever version of Chrome the machine is using.
My code to instantiate the chromedriver is as follows:
WebDriverManager.chromedriver().setup();
// webDriver = new ChromeDriver();
ChromeOptions options = new ChromeOptions();
options.addArguments("--headless");
options.addArguments("--disable-gpu");
webDriver = new ChromeDriver(options);
The problem I'm having is that the Chromedriver is telling me the DevToolsActivePort file doesn't exist. On recommendation from Google at https://bugs.chromium.org/p/chromedriver/issues/detail?id=2483&can=2&start=0&num=100&q=&colspec=ID%20Status%20Pri%20Owner%20Summary&groupby=&sort=, I've used ProcMon to figure out what's going wrong.
What I've found is that Chrome is in fact creating the DevToolsActivePort file, in the Temp folder inside the System32 folder, while the Chromedriver is checking for the file in the Temp folder inside the SysWow64 folder. Since Chrome is a 64 bit version (and doesn't even have a 32 bit version anymore since a couple versions ago) and the ChromeDriver only has a 32-bit version that should work with both 32 and 64 bit versions of Chrome, they're effectively checking different Temp folders for the same file, which means they can't find each other.
Besides installing a 32 bit version of Chrome, is there a way to make it so they both check the right folder?
selenium
add a comment |
I'm trying to run Selenium/testNg tests against headless Chrome on a Windows 2008 R2 machine. I'm using the WebDriverManager library from Bonigarcia (https://github.com/bonigarcia/webdrivermanager) to hopefully make this independent from whatever version of Chrome the machine is using.
My code to instantiate the chromedriver is as follows:
WebDriverManager.chromedriver().setup();
// webDriver = new ChromeDriver();
ChromeOptions options = new ChromeOptions();
options.addArguments("--headless");
options.addArguments("--disable-gpu");
webDriver = new ChromeDriver(options);
The problem I'm having is that the Chromedriver is telling me the DevToolsActivePort file doesn't exist. On recommendation from Google at https://bugs.chromium.org/p/chromedriver/issues/detail?id=2483&can=2&start=0&num=100&q=&colspec=ID%20Status%20Pri%20Owner%20Summary&groupby=&sort=, I've used ProcMon to figure out what's going wrong.
What I've found is that Chrome is in fact creating the DevToolsActivePort file, in the Temp folder inside the System32 folder, while the Chromedriver is checking for the file in the Temp folder inside the SysWow64 folder. Since Chrome is a 64 bit version (and doesn't even have a 32 bit version anymore since a couple versions ago) and the ChromeDriver only has a 32-bit version that should work with both 32 and 64 bit versions of Chrome, they're effectively checking different Temp folders for the same file, which means they can't find each other.
Besides installing a 32 bit version of Chrome, is there a way to make it so they both check the right folder?
selenium
I'm trying to run Selenium/testNg tests against headless Chrome on a Windows 2008 R2 machine. I'm using the WebDriverManager library from Bonigarcia (https://github.com/bonigarcia/webdrivermanager) to hopefully make this independent from whatever version of Chrome the machine is using.
My code to instantiate the chromedriver is as follows:
WebDriverManager.chromedriver().setup();
// webDriver = new ChromeDriver();
ChromeOptions options = new ChromeOptions();
options.addArguments("--headless");
options.addArguments("--disable-gpu");
webDriver = new ChromeDriver(options);
The problem I'm having is that the Chromedriver is telling me the DevToolsActivePort file doesn't exist. On recommendation from Google at https://bugs.chromium.org/p/chromedriver/issues/detail?id=2483&can=2&start=0&num=100&q=&colspec=ID%20Status%20Pri%20Owner%20Summary&groupby=&sort=, I've used ProcMon to figure out what's going wrong.
What I've found is that Chrome is in fact creating the DevToolsActivePort file, in the Temp folder inside the System32 folder, while the Chromedriver is checking for the file in the Temp folder inside the SysWow64 folder. Since Chrome is a 64 bit version (and doesn't even have a 32 bit version anymore since a couple versions ago) and the ChromeDriver only has a 32-bit version that should work with both 32 and 64 bit versions of Chrome, they're effectively checking different Temp folders for the same file, which means they can't find each other.
Besides installing a 32 bit version of Chrome, is there a way to make it so they both check the right folder?
selenium
selenium
asked Nov 12 '18 at 14:23
Nzall
2,94031849
2,94031849
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%2f53264179%2fchromedriver-checks-a-different-temp-folder-than-chrome-puts-the-devtoolsactivep%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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f53264179%2fchromedriver-checks-a-different-temp-folder-than-chrome-puts-the-devtoolsactivep%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