chromeDir does not default executing directory
See original GitHub issueaccording to the docs
chromeDir should default to executing directory, instead it throws error
The file C:\Users\xxxxxx\.nuget\packages\canopy\2.0.0\lib\chromedriver.exe does not exist. The driver can be downloaded at http://chromedriver.storage.googleapis.com/index.html
running on .NET Core 2 (both on OSX and Windows)
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Unable to change default download directory for chrome ...
However when I try to save anything the prompt does not point to that folder, instead pointing to the default downloads directory.
Read more >Chrome --user-data-dir not working properly?
The User Data folder is the profile. Copy the existing C:\Users\username\AppData\Local\Google\Chrome\User Data folder to something like C:\Users ...
Read more >Chromium Docs - User Data Directory
Default Location. The default location of the user data directory is computed by chrome::GetDefaultUserDataDirectory . Generally it varies by.
Read more >canopy docs / configuration.html-canopy
Directory for the chromedriver; Defaults executing directory (bin\Debug in many cases) ... Set to false locally so tests under development are not affected....
Read more >Download a file - Computer - Google Chrome Help
To save a file or image on your computer or device, download it. The file will be saved in your default download location....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
thanks, there are lots of ways to fix it, this should be .NET 4.6 and .NET Core compatible
canopy.configruation.chromeDir <- AppContext.BaseDirectory
https://docs.microsoft.com/en-us/dotnet/api/system.appcontext.basedirectory?view=netframework-4.6Can you see if canopy.dll is being copied to the bin/Debug folder with your application’s code?
Or are you running via nunit runner or something?
If none of that is obvious helps narrow it down, put this before you start chrome and it should fix it.