Debomita Bhattacharjee has Published 863 Articles

How to write value inside a cell in a worksheet in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 11:02:47

777 Views

We can write value inside a cell in a worksheet in Selenium. Excel is a spreadsheet which is saved with the .xlsx extension. An excel workbook has multiple sheets and each sheet consists of rows and columns.Out of all the worksheets, while we are accessing a particular sheet that is ... Read More

How to get the value in a particular cell inside the worksheet in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 11:01:28

3K+ Views

We can get the value in a particular cell inside the worksheet in Selenium. Excel is a spreadsheet which is saved with the .xlsx extension. An excel workbook has multiple sheets and each sheet consists of rows and columns.Out of all the worksheets, while we are accessing a particular sheet ... Read More

How to get the active sheet in a workbook in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 11:00:05

910 Views

We can get the active sheet in a workbook in Selenium. Excel is a spreadsheet which is saved with the .xlsx extension. An excel workbook has multiple sheets and each sheet consists of rows and columns.Out of all the worksheets, while we are accessing a particular sheet that is called ... Read More

How to configure handling and formatting of log file in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 10:58:17

1K+ Views

A log configuration consists of formatter and FileHandler methods. We need to import a logging package and then create an object which will be responsible for entire logging.If we add the parameter _name_ inside the getLogger() method, we shall be able to add the test case name for which we ... Read More

What is the importance of logging in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 10:55:56

232 Views

While building our test cases in Selenium, we need to implement a logging feature in our framework. It is essential for monitoring the flow of the program and then include other edge scenarios which we might have missed.The logs can give more information whenever there are errors than stack trace ... Read More

How to get the screenshot of a particular element in the page in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 10:52:28

2K+ Views

We can get the screenshot of a particular element in a page in Selenium. While executing any test cases, we might encounter failures for a particular. To pinpoint the failure of a specific element we try to capture a screenshot where the error exists.In an element, there may be errors ... Read More

How to get the complete screenshot of a page in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 10:51:13

610 Views

We can get the complete screenshot of a page in Selenium. While executing any test cases, we might encounter failures. To keep track of the failures we capture a screenshot of the web page where the error exists.In a test case, there may be failure for reasons listed below −If ... Read More

How to get the data from a specific cell value (say 2nd row and 2nd column) inside a table in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 10:49:58

2K+ Views

We can extract values from a specific cell (say 2nd row and 3rd column) inside a table in Selenium. First of all we need to locate the cell with the help of xpath locator.Since the row and column numbers are given, we can create a customized xpath with the help ... Read More

How to count the number of occurrences of a particular text inside a table in a page in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 10:48:25

2K+ Views

We can count the number of occurrences of a particular text inside a table in Selenium. First of all we need to locate the element by xpath. In xpath, we have a particular text() function that identifies elements based on the visible text on the screen.Then we have to use ... Read More

How to get all the values including the headers inside a table in a page in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 10:47:17

10K+ Views

We can get all the values inside a table in Selenium with the help of find_elements method. The rows of a table are represented by tag in html code. To get all the rows, we shall use the locator xpath and then use find_elements_by_xpath method. The list of rows ... Read More

Advertisements