Debomita Bhattacharjee has Published 867 Articles

What are fixtures in Pytest?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 19-Nov-2021 12:10:34

206 Views

The fixtures are methods that shall execute before each test method to which it is associated in pytest. Pytest is a test framework in python. To install pytest, we need to use the command pip install pytest. After installation, we can verify if python has been installed by the command ... Read More

How to exclude a test from execution in Pytest?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 19-Nov-2021 12:09:05

5K+ Views

We can exclude a test from execution in Pytest. Pytest is a test framework in python. To install pytest, we need to use the command pip install pytest. After installation, we can verify if python has been installed by the command pytest –version. The version of pytest shall be known.Pytest ... Read More

How to execute a selected test from a collection of tests in Pytest?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 19-Nov-2021 12:04:57

493 Views

We can execute a selected test from a collection of tests in Pytest. Pytest is a test framework in python. To install pytest, we need to use the command pip install pytest. After installation, we can verify if python has been installed by the command pytest –version. The version of ... Read More

What is a Pytest framework?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 19-Nov-2021 12:01:45

480 Views

Pytest is a test framework in python. To install pytest, we need to use the command pip install pytest. After installation, we can verify if python has been installed by the command pytest –version. The version of pytest shall be known.Pytest can be used for creating and executing test cases. ... Read More

How to get the total number of radio buttons on a page using Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 19-Nov-2021 11:58:10

1K+ Views

We can get the total number of radio buttons on a page using Selenium webdriver using the find_elements method. While working on any radio buttons, we will always find an attribute type in the html code and its value should be radio.This characteristic is only applicable to radio buttons on ... Read More

How to get the total number of checkboxes in a page using Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 19-Nov-2021 11:55:54

2K+ Views

We can get the total number of checkboxes in a page using Selenium webdriver using find_elements method. While working on any checkboxes, we will always find an attribute type in the html code and its value should be checkbox.This characteristic is only applicable to checkboxes on that particular page and ... Read More

What are some of the rules of creating a CSS expression?

Debomita Bhattacharjee

Debomita Bhattacharjee

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

287 Views

There are some rules for creating a CSS expression. The CSS is one of the important locators in Selenium. A customized CSS can be developed with the help of attributes like id, class name, and by the combination of tagname and html attributes.The ways of creating a CSS are listed ... Read More

How to use regular expressions in a CSS locator?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 19-Nov-2021 11:50:54

4K+ Views

We can use regular expressions in a CSS locator. We can identify elements by matching their attributes partially with the help of regular expressions. In CSS, there are multiple methods to achieve this. They are listed below −Using the wild character *. This means the string contains our given text.Syntax− ... Read More

How to click on a link using Selenium webdriver in Python.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 19-Nov-2021 11:36:58

9K+ Views

We can click on a link using Selenium webdriver in Python. A link is represented by the anchor tag. A link can be identified with the help of the locators like - link text and partial link text.We can use the link text attribute for an element for its identification ... Read More

How to select an option in a static dropdown in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 19-Nov-2021 11:03:24

2K+ Views

We can select an option in a static dropdown in Selenium webdriver. Selenium can handle static dropdowns with the help of the Select class. A dropdown is identified with select tagname and its options are represented with the tagname option. The statement - from selenium.webdriver.support.select import Select should be added ... Read More

Previous 1 ... 4 5 6 7 8 ... 87 Next
Advertisements