Debomita Bhattacharjee has Published 867 Articles

How to download all pdf files with selenium python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jun-2021 08:19:29

3K+ Views

Answer − We can download all pdf files using Selenium webdriver in Python. A file is downloaded in the default path set in the Chrome browser. However, we can modify the path of the downloaded file programmatically in Selenium.This is done with the help of the Options class. We have ... Read More

How to make seleinum jar file , and how to test using Selenium jar file?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jun-2021 08:17:41

3K+ Views

We can make a JAR file with the code created in Selenium and share it among others. The procedure to make a Selenium Jar file and to test it are listed in the below steps −Step1 − Right-click on the Selenium project and click on Export.Step2 − Select the option ... Read More

How to Download & Install Selenium WebDriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jun-2021 08:14:48

3K+ Views

We can download and install Selenium webdriver. This can be done with the following steps −Installation of Java JDK.Eclipse IDE installation.Installation of Selenium driver files.Installation of Java JDKStep1 − Navigate to the below link −https://www.oracle.com/java/technologies/javase-downloads.htmlStep2 − Click on JDK Download.Step3 − Depending on operating system we have, click on the ... Read More

Getting this error: "Element is not clickable at point"

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jun-2021 08:04:14

584 Views

We can get the error - Element is not clickable at point while working with Selenium webdriver. This normally happens in chromedriver since the Chrome browser utilises point location to identify an element.When the position of an element is dynamic and we want to click on that element, then this ... Read More

Selenium WebDriver Error: AttributeError: 'list' object has no attribute 'click'

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jun-2021 08:00:14

4K+ Views

We can get the Selenium webdriver error: AttributeError: 'list' object has no attribute 'click' while working on a test. Let us see an example of code where we have encountered such an error.ExampleCode Implementationfrom selenium import webdriver driver = webdriver.Chrome(executable_path='../drivers/chromedriver') #implicit wait driver.implicitly_wait(0.5) #url launch driver.get("https://www.tutorialspoint.com/index.htm") #identify an element m ... Read More

How to get Response Status Code with Selenium WebDriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jun-2021 07:53:00

3K+ Views

We can get the Response status code with Selenium webdriver. While executing a test, we can verify the Response code obtained from a server. Some common HTTP Response codes are listed below −5XX means there is an issue on the server.4XX means that the server resource cannot be identified.3XX means ... Read More

How to save as PDF on Chrome using Selenium

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jun-2021 07:49:43

8K+ Views

We can save a pdf file on Chrome using the Selenium webdriver. To download the pdf file in a specific location we have to take the help of the Options class.We shall create an object of this class and apply add_experimental_option on it. Then pass the values - prefs and ... Read More

Get Started With Selenium and Python Automation

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jun-2021 07:47:13

465 Views

We can work on Selenium with Python bindings. To get started with Selenium and Python automation in Windows operating system, we need to follow the below steps −Step 1 − Navigate to the link https://www.python.org/downloads/ to download Python.Step 2 − Click on Download Python . Once it is done, the ... Read More

How To Use TestNG Framework For Creating Selenium Scripts?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jun-2021 07:43:50

228 Views

We can use the TestNG framework for creating Selenium scripts. TestNG is a testing framework built for the usage of both the developers and testers. The steps to integrate TestNG with Selenium scripts are listed below −Step1 − Click on the Help menu from Eclipse. Then click on Eclipse Marketplace.Step ... Read More

How to Resize Browser Window in WebDriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 29-Jun-2021 07:24:18

3K+ Views

We can resize the browser window in Selenium webdriver. We can configure the size of the browser with the help of the set_window_size method in Python.The dimensions of the window size are passed as parameters to this method. Again, to get the size of the browser, we can use the ... Read More

Advertisements