Debomita Bhattacharjee has Published 872 Answers

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

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

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

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

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

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

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

How to enter values in an edit box in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 07:48:00

We can enter values in an edit box in Selenium with the help of the methods listed below −Using the send_keys method.This method can send any text to an edit box or perform pressing keys with the help of Keys class.Using the Javascript executor.Javascript Document Object Model can work with ... Read More

How to fetch values from a webelement in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 07:46:12

We can fetch values from a webelement in Selenium with the help of the methods listed below −Using the text method.This will give the inner text of the webelement. It basically gives us the visible text on the screen and its sub element if any. This method will also remove ... Read More

How to click on a link in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 07:44:31

We can click on a link on page with the help of locators available in Selenium. Link text and partial link text are the locators generally used for clicking links. Both these locators work with the text available inside the anchor tags.Link Text – The text within the anchor tag ... Read More

How will you travel from child to parent with xpath in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 07:41:59

We can identify a parent from its children in DOM with the help of xpath. There are situations where we have dynamic attributes for the parent node in html but the child nodes have unique static attributes for identification.This can be achieved with the help of relative xpath along with ... Read More

Advertisements