问题
I would like to start writing some selenium scripts using Visual Studio Code.
Can I install the webdriver(s) and how?
In the demonstration video's that I have seen Visual Studio was used, not VSC.
Please guide me since I am not familiar with the VSC editor.
回答1:
Yes you can. Step 1: Open the VS Code and Install the Nuget Package Manager using the VS code extension (Ctrl+Shift+X)
Step 2: Then go to the Command Pallette of VS Code(Ctrl+Shift+P), Search for Nuget Package Manager : Add Package and then Search for Selenium.Webdriver
You can read more about it here
来源:https://stackoverflow.com/questions/50741700/can-i-install-selenium-webdriver-into-visual-studio-code