How do I use Selenium in C#?

后端 未结 9 927
孤街浪徒
孤街浪徒 2020-12-01 06:38

Selenium.

I downloaded the C# client drivers and the IDE. I managed to record some tests and successfully ran them from the IDE. But now I want to do that using C#. I

9条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-01 07:38

    1. You will need to install Microsoft Visual Studio community Edition
    2. Create a new project as Test Project of C#
    3. Add Selenium references from the NuGet Package Manager. Then you will be all set.
    4. Create a new class and use [Test Class] and [Test Method] annotations to run your script
    5. You can refer to Run Selenium C# | Setup Selenium and C# | Configure Selenium C# for more details.

提交回复
热议问题