The Actions class in Selenium C# allows us to perform complex interactions with web elements, such as drag and drop, using modifyer keys, right-clicking or double-clicking.
Before the tests are run, please set the environment variables LT_USERNAME & LT_ACCESS_KEY from the terminal. The account details are available on your LambdaTest Profile page.
For macOS:
export LT_USERNAME=LT_USERNAME
export LT_ACCESS_KEY=LT_ACCESS_KEY
For Linux:
export LT_USERNAME=LT_USERNAME
export LT_ACCESS_KEY=LT_ACCESS_KEY
For Windows:
set LT_USERNAME=LT_USERNAME
set LT_ACCESS_KEY=LT_ACCESS_KEY
Please visit LambdaTest Capabilities Generator to generate capabilities for the test cases.
Once the environment variables are exported, run the following command from the terminal (after navigating to the root directory):
dotnet test SeleniumActionsCSharp.sln
Below is how the test execution looks on LambdaTest: