-
Notifications
You must be signed in to change notification settings - Fork 78
Add support for the Windows executable #19
Comments
Hi @kevinrood, thanks for opening this issue. I'm not sure what you mean here, though, as |
Hello @flavorjones, TL;DR: your wrapper script is never called by Selenium on Windows because it is named First of all, very nice gem, I was happy to find it. It's worked perfectly for me both on Linux and on Mac OS. However, on Windows it does not work as smoothly. I'm on Windows 7, using Git Bash to run the
And here is the error printed when I try to run my ruby app after
UPDATE:Currently testing on Windows 8, with cmd.exe and the same version of Ruby, I'll let you know the results when I'm done UPDATE 2:I had the exact same result on Windows 8 using cmd.exe UPDATE 3:I foraged around and ended up finding that a non windows version of chromedriver got installed, it was named I was curious about the source of this problem so I tried printing I'll do further investigation if I have the time for it, maybe even a pull request if I find the cause. UPDATE 4:My previous conclusion was wrong. The file I found was not chromedriver, it was the ruby script called chromedriver that gets copied to the ruby bin path when installing your gem. This means that there is a problem with the UPDATE 5:Alright, I've narrowed it down. The way you seen to have build this is by having a ruby script named While this is clever because it means that your file gets called when Selenium or other tries to use |
I'm seeing this same issue on Windows 10. I've installed chromedriver-helper via gem install. Even with chromedriver.exe in my PATH I see the following error when attempting to run: When I added ~/.chromedriver-helper/win to my PATH this resolved the issue. |
I've reproduced this, and I've put a failing integration test on the branch Unfortunately, I don't know how to make this test pass on Windows, and so I need your help. Currently if I put a ruby script in Any ideas on how to make that test pass? |
Bumping this, anyone have an idea on what a solution looks like? |
could chromedriver add that directory to PATH ? |
@matti The question of whether it's in the users However, one other potential solution I haven't explored is using |
Nope, recent versions of Selenium::WebDriver will only accept executables as an argument to Still looking for a solution here. |
@flavorjones Thank you for your quick response. I am new to codding but since there's not a solution yet I made |
Hey there. I'm on a Windows 7 box and am able to get chromedriver to work on version 1.2.0. However on the latest version of the gem, I get the "not executable" error. On 1.2.0, I'm able to simply go through a It looks like on 1.2.0, |
@philipfong I'm not sure what you're asking, and I'm sorry for that. This issue is describing a problem where, on modern Windowses (which I don't believe includes Windows 7) do not allow the execution of powershell scripts (as a matter of security policy), and so the "shim" script that this gem uses will not execute. You seem to be describing a different problem, and so I'd like to ask that you open a new issue, please, and start from the beginning when describing what you're seeing. Thank you. |
Adding chromedriver.exe to the C:\Windows\System32\ directory gets chromedriver working. However, this doesn't address why the chromedriver-helper installer isn't working anymore. I've seen this problem on two Windows 10 machines where only recently has Ruby been installed along with a very recent version of chromedriver-helper. With systems that were set up in August, chomedriver-helper's install of Chromedriver functioned perfectly. These systems continued to work after updating to the latest versions of chromedriver-helper and chromedriver. The initial installation installed a .chromedriver-helper folder in the C:\Users\UserName directory with chromedriver.exe inside it a couple of folders deep (~\2.40\win). So I'm inclined to ask "what changed?" in the past couple of months to break what had been working. Meanwhile, I'm content with the simple workaround of manually placing chromedriver.exe in a PATH location. |
@shbeavers Thanks for your comment. I've tried to describe the issue above, and it's not due to anything that's changed in the past few months. This issue dates to 2015, and may or may not manifest depending on what security settings are present on your particular windows machines. Pre-Windows-10 this may have worked depending on group policy settings, etc. Please also note that placing chromedriver.exe in your PATH means you really don't need this gem! Which is great if you're happy with that solution. |
Hi Mike,
Thanks for getting back to me on this. I mostly wanted to insert the chromedriver.exe workaround into the discussion to help that group of users who needed to stop spinning their wheels over the issue and move on to doing whatever else they needed to do (like me). Secondarily, I offered the description of my experience in case it suggested any possible cause(s) to anyone involved in troubleshooting/debugging. However, it seems you already have a handle on the root cause but haven't identified a suitable fix for it.
It might quiet the waters if you simply implemented the workaround in some fashion - if not using the \System32 directory then by picking or adding another PATH directory. I know permissions might be a factor using \System32. It's not elegant but would maybe quiet the waters while you identify a more refined approach. Seems like trying to get around an unforeseeable mish-mash of security settings is just a quagmire.
Best of luck too you.
Scott
From: Mike Dalessio <notifications@github.com>
To: flavorjones/chromedriver-helper <chromedriver-helper@noreply.github.com>
Cc: shbeavers <shbeavers@yahoo.com>; Mention <mention@noreply.github.com>
Sent: Tuesday, November 6, 2018 6:34 PM
Subject: Re: [flavorjones/chromedriver-helper] Add support for the Windows executable (#19)
@shbeavers Thanks for your comment. I've tried to describe the issue above, and it's not due to anything that's changed in the past few months. This issue dates to 2015, and may or may not manifest depending on what security settings are present on your particular windows machines. Pre-Windows-10 this may have worked depending on group policy settings, etc.Please also note that placing chromedriver.exe in your PATH means you really don't need this gem! Which is great if you're happy with that solution.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@flavorjones sorry if I was unclear. What I was getting at was that using version 1.2.0 on Windows 7 works just fine whereas the latest version of the gem does not. If you need steps to reproduce, simply run I'm with @shbeavers in pretty much asking "what changed?" |
The only solution for me is to use 1.2.0. |
Hi all, If something's not working that's changed since v1.2.0 then can someone please open a new ticket and we can dig in there? Again, this ticket was opened to describe an issue related to Windows 10 file permissioning that's existed for several years, and v1.2.0 was released earlier in Feb 2018. Having a second (or third) issue here makes this information harder to find, so thank you in advance for helping me out and opening a new issue. |
I read changing this
To this
Also addresses the issue. So maybe that's a place to start? |
@whatisc please see my request at #19 (comment) |
I was under the impression it's the same issue? But maybe not. |
Had this problem, worked. Thanks |
I'm going to close this issue, as the gem is being deprecated in favor of webdrivers, see #83. |
No description provided.
The text was updated successfully, but these errors were encountered: