Debomita Bhattacharjee has Published 863 Articles

Describe some of the exceptions available in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 09:38:11

412 Views

There are multiple exceptions available in Selenium that are thrown whenever any unexpected situations occur or any of the methods yield error. BaseException is the class from where all the objects of Python are derived.The exceptions that are generated by default are from the interpreter or the built in functions. ... Read More

How to find the status of an element in a page in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 09:35:32

749 Views

We can find the status of an element in a page with the help of Selenium. We can get the information if an element is enabled or disabled. Also, we can verify if an element is visible on screen for the user interaction or not.On a web page, there may ... Read More

What are the differences between close() and quit() methods in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 09:31:55

2K+ Views

There may be situations when we need to open more than browsers with multiple tabs. In order to close these sessions quit() and close() methods are used in Selenium. However there are differences between them, they are listed below −The close() method can close the browser in focus. While quit() ... Read More

What are the common driver methods that can be applied to browsers in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 09:29:22

174 Views

There are multiple common web driver methods that allow operation on browsers in Selenium with Python. Some of these methods are listed below −driver.get(url)This method is used to navigate or launch a new URL. The webdriver waits until there is full page load. For an application that has AJAX code, ... Read More

How to count the total number of frames in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 09:27:43

2K+ Views

We can count the total number of frames in a page in Selenium with the help of find_elements method. While working on frames, we will always find the tagname in the html code and its value should be frame/iframe.This characteristic is only applicable to frames on that particular page and ... Read More

How to handle frames in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 09:26:46

10K+ Views

We can handle frames in Selenium. A frame is an HTML element that keeps a document within another document in a page. HTML has the or tags for embedding a frame inside a document.There are multiple APIs available in Selenium to work with the frames. They are listed ... Read More

How to handle child windows in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 09:25:25

4K+ Views

We can handle child windows or tabs in Selenium. While working with child windows, we need to always shift the browser focus to the child windows, then perform operation on them.By default, the focus remains on the first parent window. There are multiple methods available in Selenium which are listed ... Read More

How to extract text from a Javascript alert in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 09:23:28

810 Views

We can extract text from a Javascript alert with the help of text method under Alert class. The alerts are basically the browser popups that are triggered for either dismissing or accepting the data entered.All these actions are performed by Selenium with the help of class selenium.webdriver.common.alert.Alert(driver). It has the ... Read More

How will you handle alerts in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 09:20:52

6K+ Views

We can handle alerts in Selenium with the help of numerous APIs. The alerts are basically the browser popups that are triggered for either dismissing or accepting the data entered.All these actions are performed by Selenium with the help of class selenium.webdriver.common.alert.Alert(driver). It has the methods to extract the text ... Read More

How to count the total number of links in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

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

3K+ Views

We can count the total number of links in a page in Selenium with the help of find_elements method. While working on links, we will always find the tagname in the html code and its value should be anchor (a).This characteristic is only applicable to links on that particular page ... Read More

Advertisements