In this post we will focus on the second case, by downloading selenium via Nuget Package manager
Please find below the complete video of the above discussion
Thanks for reading the post and watching the video!!!
Please leave your comments and let me know if there is anything need to be improved in the post !!!
Thanks,
Karthik KK
Post Author:
Karthik kk
10 Replies to “Referencing Selenium C# in Visual Studio”
I am getting an error as ‘Failed to add the reference to ‘WebDriver” while installing Selenium WebDriver via Nuget Package manager. Am I missing anything? Please suggest.
I am very new to automation when i add the reference for both webdriver and chrome driver i get the An unhandled exception of type ‘System.InvalidOperationException’ occurred in WebDriver.dll please suggest
@ Danny for the error ‘unhandled exception of type ‘System.InvalidOperationException’ occurred in WebDriver.dll’ go to the http://chromedriver.storage.googleapis.com/index.html
download the latest version and replace the chromedriver.exe in your project bin folder.
Hi Im a beginner and studying Selenium C# from scratch, on this topic, what does it mean to ‘reference’ or I should say why do we need to reference / what was it important role?
Thanks!
In order to develop selenium tests using C# on a mac system, what I need to install?
a. I need to install visual studio community version 2015 from visualstudio.com for mac (iOS)
or,
b. I need to install virtual machine (parallel) to run visual studio in it
or,
c. Using Monaco editor
I am confused and will highly appreciate your response.
Hi, I downloaded the VS Ultimate 2013 Edition and I am getting below Error:-
“The remote name could not be resolved: ‘api.nuget.org'”. Even i tried adding the Package through Tools Options and below Package is already added in Source https://www.nuget.org/api/v2
Tell me how to get rid of this Error, I am unable to download any packages like Selenium,SpecFlow etc.
I am getting an error as ‘Failed to add the reference to ‘WebDriver” while installing Selenium WebDriver via Nuget Package manager. Am I missing anything? Please suggest.
Hi Karthik,
I am very new to automation when i add the reference for both webdriver and chrome driver i get the An unhandled exception of type ‘System.InvalidOperationException’ occurred in WebDriver.dll please suggest
Good work. The video explains it all.
@ Danny for the error ‘unhandled exception of type ‘System.InvalidOperationException’ occurred in WebDriver.dll’ go to the http://chromedriver.storage.googleapis.com/index.html
download the latest version and replace the chromedriver.exe in your project bin folder.
Hi Im a beginner and studying Selenium C# from scratch, on this topic, what does it mean to ‘reference’ or I should say why do we need to reference / what was it important role?
Thanks!
I am unable to found Firefox browser in NuGetpackages.. can anyone help me..
Selenium supports Firefox out-of-box, hence you dont have to install it separately !!!
Hi Karthik,
In order to develop selenium tests using C# on a mac system, what I need to install?
a. I need to install visual studio community version 2015 from visualstudio.com for mac (iOS)
or,
b. I need to install virtual machine (parallel) to run visual studio in it
or,
c. Using Monaco editor
I am confused and will highly appreciate your response.
Hi, I downloaded the VS Ultimate 2013 Edition and I am getting below Error:-
“The remote name could not be resolved: ‘api.nuget.org'”. Even i tried adding the Package through Tools Options and below Package is already added in Source
https://www.nuget.org/api/v2
Tell me how to get rid of this Error, I am unable to download any packages like Selenium,SpecFlow etc.
Hi sir,
How to create testing project which template i need to choose, you didnt mention this thing please tell me that.
Thank you