New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in install.ps1 #1
Comments
issue is not actually with the line of code I thought it was. |
oookay, do you have a clue how to fix it? I use the same install script for the chrome-driver which works on my machine. |
Thanks for the reply. On Thu, Aug 7, 2014 at 3:10 PM, Bernhard Millauer notifications@github.com
|
ok, can I close the issue? |
Yes you may. I've asked on StackOverflow here: On Fri, Aug 8, 2014 at 2:11 AM, Bernhard Millauer notifications@github.com
|
Figured out the issue - I was able to get the install working fine using this modified install.ps1 and this modified uninstall.ps1 #$file = Join-Path (Join-Path $toolsPath '..\content') 'IEDriverServer.exe' $ErrorActionPreference = "SilentlyContinue" On Fri, Aug 8, 2014 at 10:04 AM, Jeremy Simmons jsimmons@jeremysimmons.net
|
Overall - I believe that this InstallScript is not robust enough to handle the case when the Packages folder is in the same directory as the CSPROJ without causing errors. |
wow, thanks for the help! |
I'm a developer of Selenium.WebDriver.IEDriver NuGet package. I run into same issue on my avobe project. I would try to resolve this issue, but I'm feeling it is too difficult to resolve this issue because it is specification of Visual Studio... |
The issue is too edge-case to me to fix it immediately. |
@jsakamoto thank you for confirming the issue. I was starting to feel crazy. Sent from my iPhone
|
@SeriousM I am on vacation this week and will work on a fix for the edge case. Keep your eye out for a patch. Sent from my iPhone
|
awesome! thank you :) On 8/11/14, Jeremy Simmons notifications@github.com wrote:
|
@jeremysimmons I tried to handle the case when the packages folder is in the same directory as the CSPROJ on my project (not for your project, so I can not send to you pull request...) The commit is here: and publish Beta release: My strategy is using Microsoft.Build class library, and treat CSPROJ as a MSBuild script XML instead of DTEnv object model when detected the same directory case. In that case, WebDriver.exe linked project item does not appear in the Solution Explorer of Visual Studio (I think, it may be by design of Visual Studio), but copying the driver .exe file into bin folder is work well. Is it helpful? |
It looks very helpful. Thanks @jsakamoto! Have you have tried to implement automated functional tests for nuget? Sent from my iPhone
|
@jeremysimmons Thank you for your reply.
No, not yet. I have interested in automated testing for programing codes and web applications. (so that I'm creating the package of Selenium for all people who challenging automated browser test :) ) But, I'm hampered by high barriers to mocking about NuGet installation/uninstallation process. Have you have tried it? Have you any idea? |
@jsakamoto I am currently trying to figure out how to execute the nuget EndToEnd tests |
@SeriousM I implemented the modification to the install.ps1 and uninstall.ps1 using the code from @jsakamoto's nuget package. Pull Request |
ok, we'll discuss there. Closed. |
Visual Studio 2012 Ultimate Update 4
Package Manager 2.8.50313.31
when installing, I get this error:
Exception calling "Item" with "1" argument(s): "The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))"
At C:\dev\Projects\AttachmentUnitTests\packages\WebDriver.IEDriverServer.win32.2.42.0\tools\install.ps1:9 char:1
Error is with this line
$file = Join-Path (Join-Path $toolsPath '..\content') 'IEDriverServer.exe' | Get-ChildItem
The expression
Join-Path (Join-Path $toolsPath '..\content') 'IEDriverServer.exe'
gives the value
C:\dev\Projects\AttachmentUnitTests\packages\WebDriver.IEDriverServer.win32.2.42.0\tools..\content\IEDriverServer.exe
The expression
Join-Path (Join-Path $toolsPath '..\content') 'IEDriverServer.exe' | Get-ChildItem
gives the value
C:\dev\Projects\AttachmentUnitTests\packages\WebDriver.IEDriverServer.win32.2.42.0\content
The text was updated successfully, but these errors were encountered: