Skip to content

andreea-qa/Waits-in-Selenium-Csharp

Repository files navigation

Explicit Wait in Selenium

This is a demo project to show how to work with explicit waits in C# using LambdaTest Selenium grid. Selenium Waits are a great way to avoid running into errors such as NoSuchElementException.

Setting up environment variables

Before the tests are run, please set the following environment variables from the terminal to set up the LambdaTest environment variables:

For macOS:

export LT_USERNAME=LT_USERNAME
export LT_ACCESS_KEY=LT_ACCESS_KEY
export HYPEREXECUTE_PLATFORM='windows 10'
export HYPEREXECUTE_WORKING_DIR='<full_path_project_directory>'

For Linux:

export LT_USERNAME=LT_USERNAME
export LT_ACCESS_KEY=LT_ACCESS_KEY
export HYPEREXECUTE_PLATFORM='windows 10'
export HYPEREXECUTE_WORKING_DIR='<full_path_project_directory>'

For Windows:

set LT_USERNAME=LT_USERNAME
set LT_ACCESS_KEY=LT_ACCESS_KEY
set HYPEREXECUTE_PLATFORM='windows 10'
set HYPEREXECUTE_WORKING_DIR='<full_path_project_directory>'

Browser Capabilities

You can use the Automation Capabilities Generator to configure the browser settings you want to use:

automation_capabilities

Execute the tests

Run your tests and you will be able to see the results in the Dashboard:

test_results

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages