Debomita Bhattacharjee has Published 863 Articles

How to do session handling in Selenium Webdriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 08-Apr-2021 08:08:55

6K+ Views

We can perform session handling with the help of Selenium webdriver with a TestNG framework. To trigger different sessions, we shall use the attribute parallel in the TestNG XML file.A TestNG execution configuration is done in the TestNG XML. To create multiple sessions, we shall add the attributes – parallel ... Read More

How to install Selenium package in Anaconda?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 08-Apr-2021 08:01:25

6K+ Views

We can install the Selenium package in Anaconda. The conda has multiple packages so that it can be integrated with Selenium, Selenium-pytest, and so on from the below link − https://anaconda.org/searchA conda is a command line tool in the form of a package which is used for Anaconda.It has some ... Read More

How to get the following-sibling element for a table type of structure in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 08-Apr-2021 07:55:10

3K+ Views

We can get the following-sibling element for a table type of structure in Selenium webdriver. A following-sibling is used to determine the siblings of the context node.Also, these siblings should be present at the same hierarchy of the current node and share the same parent. Let us take an instance ... Read More

How to handle chrome notification in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 08-Apr-2021 07:52:08

6K+ Views

We can handle Chrome notification in Selenium webdriver. These are generally known as the web push notifications and can be handled with the help of the ChromeOptions class. The below image shows a notification from the browser Chrome −We have to create an object of this ChromeOptions class and apply ... Read More

How to read test data from an excel sheet and use it to test facebook login in Selenium Webdriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 08-Apr-2021 07:47:53

1K+ Views

We can read test data from an excel sheet and use it to test Facebook login with Selenium webdriver in Python. We can access excel with Python with the help of the OpenPyXL library.To install this library, we have to run the command - pip install openpyxl. Besides, we have ... Read More

How can we read data from an excel sheet in Selenium Webdriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 08-Apr-2021 07:47:25

3K+ Views

We can read data from an excel sheet in Selenium webdriver in Python.An excel workbook consists of multiple sheets and each sheet consists of cells and columns.To work with excel in Python(with extension .xlsx, .xlsm, and so on) we have to utilize the OpenPyXL library. To install this package, we ... Read More

Screenshot of a particular element with Python Selenium in Linux

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 08-Apr-2021 07:45:08

574 Views

We can capture a screenshot of a particular element with Selenium webdriver in Python. To achieve this task, first we have to identify the element which we want to identify with the help of any locators like id, xpath, css, name, class name, tagname, link text or partial link text.After ... Read More

Error:selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH using Selenium

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 08-Apr-2021 07:44:22

2K+ Views

We can get the error selenium.common.exceptions.WebDriverException if the path of the chromedriver.exe executable file is not set properly or incorrect within the webdriver.Chrome(). The below image shows such an exception.It can be resolved by the following ways −Verify the path of the chromedriver.exe file set within webdriver.Chrome.Install the webdriver manager ... Read More

How does Selenium Webdriver handle the SSL certificate in Safari?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 08-Apr-2021 07:43:55

366 Views

Selenium webdriver is capable of handling SSL certificate in the Safari browser. This is done with the help of the DesiredCapabilities class. We shall create an object of this class. Then apply the setCapability method on it and set the value of property CapabilityType.ACCEPT_SSL_CERTS to true.The SSL is a protocol ... Read More

How to search for a keyword in google using Selenium Java?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 08-Apr-2021 07:40:35

5K+ Views

We can search for a keyword in Google using Selenium webdriver in Java.In order, to perform a search, we have to first land on the Google page with the help of the get method.Then identify the search edit box with the help of any of the locators like id, name, ... Read More

Advertisements