Debomita Bhattacharjee has Published 872 Articles

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

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

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

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

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

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

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

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

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

How to trigger headless test execution in Selenium with Python?

Debomita Bhattacharjee

Debomita Bhattacharjee

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

Selenium supports headless execution. In the Chrome browser, the headless execution can be implemented with the help of the ChromeOptions class. We have to create an object of this class and apply the add_arguments method to it. Finally, pass the parameter --headless to this method.Let us obtain the title - ... Read More

How to work with id locator in WebdriverIO?

Debomita Bhattacharjee

Debomita Bhattacharjee

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

We can work with the id locator in WebdriverIO. Once we navigate to a webpage, we have to interact with the web elements available on the page like clicking a link/button, entering text within an edit box, and so on to complete our automation test case.For this, our first job ... Read More

Previous 1 ... 3 4 5 6 7 ... 88 Next
Advertisements