Debomita Bhattacharjee has Published 863 Articles

How to invoke the Chrome browser in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

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

14K+ Views

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

810 Views

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

13K+ Views

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

3K+ Views

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

2K+ Views

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 are the various waits available in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Jul-2020 15:20:13

476 Views

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

How to refresh a browser then navigate to a new page with Javascript executor in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

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

1K+ Views

We can refresh a page and then navigate to a new page from the current page with Javascript executor in Selenium. Javascript is a language used for scripting and runs on the client side (on the browser). Selenium gives default methods to work with Javascript.Syntaxdriver.execute_script('history.go[0]') javaS = "window.location = 'https://www.tutorialspoint.com/index.htm'" ... Read More

How to get the title and URL of a webpage with Javascript executor in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Jul-2020 15:13:43

1K+ Views

We can get the title and URL of a webpage with Javascript executor in Selenium. Javascript is a language used for scripting and runs on the client side (on the browser). Selenium gives default methods to work with Javascript.Syntaxprint(driver.execute_script('return document.title')) print(driver.execute_script('return document.URL'))There are couple of methods of working with Javascript ... Read More

How to get the inner text of a webpage with a Javascript executor in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Jul-2020 15:10:51

3K+ Views

We can get the inner text of a webpage with a Javascript executor in Selenium. Javascript is a language used for scripting and runs on the client side (on the browser). Selenium gives default methods to work with Javascript.Syntaxprint(driver.execute_script('return document.documentElement.innerText'))There are couple of methods of working with Javascript −Javascript execution ... Read More

How to perform vertical scrolling of a webpage with Javascript executor in Selenium with python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Jul-2020 14:54:54

551 Views

We can perform vertical scrolling of a webpage with Javascript executor in Selenium. Javascript is a language used for scripting and runs on the client side (on the browser). Selenium gives default methods to work with Javascript.Syntaxdriver.execute_script("window.scrollTo(0, document.body.scrollHeight);")There are couple of methods of working with Javascript −Javascript execution at document ... Read More

Advertisements