File is not accessible - Visual Studio 2017
File is not accessible - Visual Studio 2017
I have downloaded Visual Studio 2017/Community, for test automation, but when I added the reference selenium-dotnet 3.14.0 , it's saying that this file is not accessible.
Please help. Thanks
click here to see the problem
What exactly are you trying to do? The question by itself doesn't make a lot of sense to me. Could you give some context?
– Xan-Kun Clark-Davis
Aug 31 at 21:15
I am trying to configure visual studio for running automated tests, I downloaded c# version from Selenium Client & WebDriver Language Bindings at seleniumhq.com but when I want to add it to my project, I get that error
– LianYu
Aug 31 at 21:18
@nicomp I added a screenshot, if that helps
– LianYu
Aug 31 at 21:33
2 Answers
2
Have you tried going to the NuGet Package Manager?
Go to Tools -> NuGet Package Manager -> Manage NuGet Packages for Solution
Then Search for Selenium and v3.14.0 is at the top
You can also do this from the NuGet Package Manager Console with:
Install-Package Selenium.WebDriver
Yes, but still not working. I tried so many ways, created new unit projects etc, but still nothing
– LianYu
Aug 31 at 21:43
What type of c# project are you working with? i.e. .net core, .net framework etc.
– ZP123
Aug 31 at 21:56
Unit Project, for testing with selenium webdriver
– LianYu
Sep 6 at 13:48
According to the screenshot, you're trying to add a NuGet package through the "Add reference" dialog, which is designed to add references to DLLs directly. NuGet packages typically contain DLLs but you have to install them using the Manage NuGet Packages for Solution dialog as @ZP123 explained and not through Add Reference.
Thanks for contributing an answer to Stack Overflow!
But avoid …
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:
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
You need to provide an example we can replicate. We can't help you unless you give us more.
– nicomp
Aug 31 at 21:13