Debomita Bhattacharjee has Published 863 Articles

Automated Software Testing with SpecFlow in Selenium

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 07-Apr-2021 09:03:56

371 Views

We can have automated software testing with SpecFlow by configuring Selenium in C#. We will use the Visual Studio editor, to develop the Selenium tests using the NUnit framework. Click on Create a new project from the Visual Studio welcome page.Enter NUnit in the search edit box within the Create ... Read More

How can I verify Error Message on a webpage using Selenium Webdriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 07-Apr-2021 09:01:10

8K+ Views

We can verify error messages on a webpage using Selenium webdriver using the Assertion. In case, the actual and expected values do not match, an Assertion Error is thrown.Let us try to verify the highlighted error message.Exampleimport org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; import java.util.concurrent.TimeUnit; import org.testng.Assert; public class ... Read More

Handling DropDown And Multiple Select in Webdriver using Selenium

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 07-Apr-2021 08:57:44

18K+ Views

We can handle multi-select dropdown with Selenium webdriver using the Select class. A multi-select dropdown is the one which allows selection of multi options.The Select methods to handle multi-select dropdown are listed below −getOptions – returns the list of all options in the dropdown.Select s = new Select(e); List l ... Read More

What is Selenium Internet Explorer Driver or IE Driver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 07-Apr-2021 08:51:46

453 Views

Selenium Internet Explorer Driver is used to execute test cases in the Internet Explorer browser. It is a standalone server that establishes a link between our Selenium test and the Internet Explorer browser.We can download the Internet Explorer Driver file from the below link − https://www.selenium.dev/downloads/Select and click on the ... Read More

Selenium with C Sharp - How to perform Explicit Wait method?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 07-Apr-2021 08:50:24

2K+ Views

We can perform explicit wait with Selenium webdriver in C#. This is done to achieve synchronization between our tests and the elements on the page. For implementation of explicit wait, we have to take the help of the WebDriverWait and ExpectedCondition classes.We shall create an object of the WebDriverWait class. ... Read More

How to do DataDriven testing in specflow api using Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 07-Apr-2021 08:48:49

272 Views

We can do data driven testing in SpecFlow with/without the Examples keyword. In case we are not using the keyword Examples, then we have to send the data from the steps (enclosed in '') in the Feature file.Feature File ImplementationFeature: Launching application Scenario: Launch URL Given User hits URL 'https://www.tutorialspoint.com/index.htm'ExampleStep ... Read More

C Sharp with Selenium - How to Switch one tab to another tab in Csharp Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 07-Apr-2021 08:47:13

5K+ Views

We can switch one tab to another tab with Selenium webdriver in C#.Sometimes on clicking a link or a button, we can have multiple tabs opened in the same browser.By default, the webdriver can access only the parent tab. To access the second tab, we have to switch the driver ... Read More

C# and Selenium: Wait Until Element is Present

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 07-Apr-2021 08:45:02

7K+ Views

We can wait until an element is present in Selenium webdriver using the explicit wait. It is mainly used whenever there is a synchronization issue for an element to be available on page.The WebDriverWait and the ExpectedCondition classes are used for an explicit wait implementation. We have to create an ... Read More

How to set Page Load Timeout using C# using Selenium WebDriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 07-Apr-2021 08:39:38

3K+ Views

We can set page load timeout using Selenium webdriver in C# using the PageLoad method. It is used to set time to wait for loading of the page. An exception will be thrown if the page is not loaded within the timeout specified.Syntaxdriver.Manage().Timeouts().PageLoad = TimeSpan.FromSeconds(10);Here, 10 is the amount of ... Read More

Moving mouse pointer to a specific location or element using C# and Selenium

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 07-Apr-2021 08:38:51

7K+ Views

We can move mouse pointer to a specific location or element in Selenium webdriver(C#) using the Actions class. We have to first create an object of this class.Next to move an element we have to apply the MoveToElement method and pass the element locator as a parameter to this method. ... Read More

Advertisements