Debomita Bhattacharjee has Published 863 Articles

How will you get all the options in a static dropdown?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 08:27:28

773 Views

We can obtain all the options in a dropdown in Selenium. All the options in the dropdown are stored in a list data structure. This is achieved with the help of options() which is a method under Select class.options() returns list of all options under the select tag. An empty ... Read More

How will you deselect an option from a static dropdown?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 08:19:47

2K+ Views

We can deselect an option from a static dropdown with the help of methods under Select class.The deselect methods are listed below −deselect_by_value(args) − Deselection with the help of value of option.This method deselects the option based on the value of the specific option. NoSuchElementException thrown if there is no ... Read More

How to select a radio button in a page in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 08:15:52

5K+ Views

We can select a radio in a page in Selenium with the help of click() method. First of all we need to uniquely identify the checkbox with the help of any of the locators like css, xpath, id, class and so on.Next we have to use findElement() method to locate ... Read More

How to check a checkbox in a page in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 08:14:53

7K+ Views

We can check a checkbox in a page in Selenium with the help of click() method. First of all we need to uniquely identify the checkbox with the help of any of the locators like css, xpath, id, class and so on.Next we have to use findElement() method to locate ... Read More

What are the methods available for handling static dropdowns in a page in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 08:09:18

289 Views

There are multiple methods available for handling static dropdowns in a page in Selenium. The static dropdowns are an integral part of a web page. This type of UI elements are mostly developed for birthday or age selection on a page.A dropdown is not an element alone. It is a ... Read More

How to count the total number of radio buttons in a page in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 08:01:25

1K+ Views

We can count the total number of radio buttons in a page in Selenium with the help of 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 ... Read More

How to count the number of checkboxes in a page in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 07:57:23

2K+ Views

We can count the total number of checkboxes in a page in Selenium with the help of 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 ... Read More

What are the ways of submitting a form in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 07:56:24

7K+ Views

There are multiple ways of submitting a form in Selenium. One of the methods is to directly use the click() method on the form submitting button. The next approach is to use the submit() method on the form page.Using the submit() method.This method shall simply submit the form after the ... Read More

How to clear the text entered in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 07:53:15

20K+ Views

We can enter text on any field in Selenium. After entering the text, we may need to remove or clear the text we entered in that field. This interaction with the web elements can be achieved with the help of clear() method.Thus a clear() method is used to clear or ... Read More

How to use a click() method in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 07:51:58

1K+ Views

While working on an application and navigating to different pages or different sections of a page, we need to click on various UI elements on a page like a link or a button. All these are performed with the help of click() method.Thus a click() method typically works with elements ... Read More

Advertisements