question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

chromeDir does not default executing directory

See original GitHub issue

according 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:open
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
totanocommented, Apr 11, 2018

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.6

1reaction
lefthandedgoatcommented, Apr 11, 2018

Can 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.

canopy.configruation.chromeDir <-  System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location)
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found