Debomita Bhattacharjee has Published 867 Articles

What is the Scenario Outline keyword in Cucumber?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Nov-2021 12:39:59

386 Views

Scenario Outline is used to replicate the same Scenario with a different data set. Writing the same tests with different values is cumbersome and time taking. For instance, We can club the above two scenarios with the Scenario Outline.Thus, we see that a Scenario Outline should be accompanied by keyword ... Read More

What is the Example keyword in Cucumber?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Nov-2021 12:37:56

4K+ Views

We can perform data-driven testing with the help of keyword Examples. We shall also take the help of keyword Scenario Outline to execute the same Scenario over multiple values.The data sets to be taken into consideration shall be passed below the Examples section one after another separated by | symbol. ... Read More

What is the Background keyword in Cucumber?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Nov-2021 12:30:23

8K+ Views

The Background keyword is applied to replicate the same steps before all Scenarios within a Feature File.Background RulesLet us describe some of the rules while applying Background −It should be used for defining simple steps unless we are forced to bring the application to a state which requires complicated steps ... Read More

What is Test Driven Development?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Nov-2021 12:21:11

201 Views

Test-Driven Development is also known as the TDD. It consists of the below steps to be followed one-by-one −Step 1− Create a Test.Step 2− Verify if the test fails.If the test passes, create the second test.If the test fails, then move to Step 3.Step 3− Fix the test to make ... Read More

Explain a Step Definition in SpecFlow.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Nov-2021 12:19:32

1K+ Views

To execute the Feature file, we must add the implementation logic for each of the steps. To add the definition of the step in SpecFlow, the C# language is used. Thus, a Step Definition File contains methods developed in C# within a Class.The methods have annotations along with a pattern ... Read More

Explain a Feature file in SpecFlow.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Nov-2021 12:15:37

2K+ Views

The SpecFlow test execution begins from the Feature File. Here all the Features and their corresponding Scenarios are explained in plain text. It has a dual role of serving as an automation element as well as for documentation. A Feature File consists of one or more Scenarios in form of ... Read More

How to handle frame in WebDriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Nov-2021 11:51:05

249 Views

We can handle frames in Selenium webdriver. The frames in an html code are represented by the frames/iframe tag. Selenium can handle frames by switching the webdriver access from the main page to the frame.Methods to handle frames are listed below −driver.switch_to_frame("frame name") - frame name is the name of ... Read More

How can we handle authentication popup in Selenium WebDriver using Java?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Nov-2021 11:48:54

1K+ Views

We can handle authentication popup in Selenium webdriver using Java. To do this, we have to pass the user credentials within the URL. We shall have to add the username and password to the URL.Syntax −https://username:password@URL https://admin:admin@the-internet.herokuapp.com/basic_auth Here, the admin is the username and password. URL – www.the-internet.herokuapp.com/basic_auth Let us ... Read More

How to scroll down a webpage in selenium using Java?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Nov-2021 11:43:33

597 Views

We can scroll down a webpage in Selenium using Java. Selenium is unable to handle scrolling directly. It takes the help of the Javascript Executor to perform the scrolling action up to an element.First of all, we have to locate the element up to which we have to scroll. Next, ... Read More

Get text using selenium web driver in python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Nov-2021 11:41:05

420 Views

We can get text using Selenium webdriver in Python. This is done with the help of a text method. It fetches the text in an element that can be later validated.First, we need to identify the element with the help of any locators. Suppose we want to get the text ... Read More

Previous 1 ... 7 8 9 10 11 ... 87 Next
Advertisements