Debomita Bhattacharjee has Published 896 Answers

How to perform back and refresh in a browser in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

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

We can perform back and refresh in the browser in Selenium.For performing back operation in the browser, the back method is to be used.For refreshing the browser, refresh method is to be used.Both these methods can be used for testing browser navigations and reloading of web pages.ExampleCode Implementationfrom selenium import ... Read More

How to get the title and URL of the page in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 07:02:22

We can get the title and URL of the page in Selenium.For getting the title of the browser, the title method is to be used.For getting the URL of the page, the current_url method is to be used.Both these methods can be used for testing if we are navigated to ... Read More

How to maximize and minimize browsers in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 06:58:42

We can maximize and minimize the browser while we are testing an application in Selenium.For maximizing the browser, maximize() method is to be used.For minimizing the browser, minimize() method is to be used.Both these methods can be used simultaneously in the same program.ExampleCode Implementationfrom selenium import webdriver #browser exposes an ... Read More

How to invoke the IE browser in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 06:57:13

We can invoke any browsers with the help of the webdriver package. From this package we get access to numerous classes. Next we have to import the selenium.webdriver package. Then we shall be exposed to all the browsers belonging to that package.For invoking the internet explorer browser, we have to ... Read More

How to invoke the Firefox browser in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 06:55:40

We can invoke any browsers with the help of the webdriver package. From this package we get access to numerous classes. Next we have to import the selenium.webdriver package. Then we shall be exposed to all the browsers belonging to that package.For invoking the Firefox browser, we have to select ... Read More

How to invoke the Chrome browser in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jul-2020 06:51:59

We can invoke any browsers with the help of the webdriver package. From this package we get access to numerous classes. Next we have to import the selenium.webdriver package. Then we shall be exposed to all the browsers belonging to that package.For invoking chrome browser, we have to select the ... Read More

How to identify multiple elements at the same time in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Jul-2020 15:38:55

We can locate and identify multiple elements at the same time in Selenium. There are various strategies to locate the elements. The different ways of locating elements are listed below −find_elements_by_xpath – This method returns all the elements with matching xpath in the argument in form a list. It shall ... Read More

What are the differences between implicit and explicit waits in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Jul-2020 15:28:16

The differences between implicit and explicit wait are listed below −Implicit WaitExplicit Wait1The driver is asked to wait for a specific amount of time for the element to be available on the DOM of the page.The driver is asked to wait till a certain condition is satisfied.2It is a global ... Read More

What is the explicit wait in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Jul-2020 15:24:23

While working with Selenium, there may be situations when we see that after page load action by the browser, the web elements are getting loaded at various intervals of time.This type of situation leads to syncing problems between Selenium and the web element on the page. The identification of elements ... Read More

What is implicit wait in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Jul-2020 15:21:57

While working with Selenium, there may be situations when we see that after page load action by the browser, the web elements are getting loaded at various intervals of time.This type of situation leads to syncing problems between Selenium and the web element on the page. The identification of elements ... Read More

Advertisements