简体   繁体   English

使用Chrome的C#Automation Visual Studio-Hello World用户

[英]C# Automation Visual Studio using Chrome - Hello World User

I am currently in the process of automating a bunch of tests for a website in my company. 我目前正在为我公司的网站自动化一堆测试。

I am using C# to automate them, and I need some assistance regarding the basic files I need to use in order to automate? 我正在使用C#使它们自动化,并且我需要一些有关自动使用的基本文件的帮助?

I am using visual studio, I understand I need selenium webdrivers for chrome, which ones is it, and how do I know I am using the correct ones? 我正在使用Visual Studio,我了解我需要用于chrome的硒网络驱动程序,它是哪一个,如何知道我在使用正确的驱动程序?

Are there any files with this that I need to automate multiple test cases? 是否有与此相关的文件才能自动执行多个测试用例? (I will be making an excess of 100 test cases. (我将制作100多个测试用例。

Kind Regards, 亲切的问候,

M 中号

(I am also at a very hello world levels, so please try to keep terminology basic if possible?) (我的世界水平也很高,因此,如果可能的话,请尝试保持术语基本吗?)

  1. You will need to install ChromeDriver which is described here . 您将需要安装ChromeDriver其描述在这里
  2. Then you'll need to download Selenium for .NET and reference it in your project. 然后,您需要下载Selenium for .NET ,并在您的项目中引用它。 You can quickly do it using package manager console: Install-Package Selenium.WebDriver -Version 2.53.1 您可以使用程序包管理器控制台快速完成此操作: Install-Package Selenium.WebDriver -Version 2.53.1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM