Found 871 Articles for Automation Testing

Selenium Exception Error - Element is not clickable at point (x,y). Other element would receive the click

Debomita Bhattacharjee
Updated on 29-Jun-2021 08:39:00

1K+ Views

We may encounter the Selenium Exception Error - Element is not clickable at point(x, y). Other element would receive the click while working Selenium webdriver.This is normally seen while executing Selenium tests from the Chrome browser and not with other browsers like IE and Firefox. This happens because the Chrome browser could not compute the correct location of a webelement.Besides, in the Chrome browser, an element is clicked in its middle position. This exception can also be encountered owing to synchronization issues happening between the application and Selenium.There exists some solutions to fix this issue as listed below −We should ... Read More

How to do UI testing with Selenium?

Debomita Bhattacharjee
Updated on 29-Jun-2021 08:37:35

2K+ Views

We can do UI testing with Selenium webdriver. To achieve this, we have to follow the steps listed below which can be applied to any script developed to test the UI of the application −Step1 − Object of Webdriver should be created. For example, WebDriver driver = new ChromeDriver();The above piece of code is used to create a webdriver instance and initiate the script execution in the Chrome browser.Step2 − Launch the URL on which we want to perform the UI testing. For example, driver.get("https://www.tutorialspoint.com/about/about_careers.htm");The above piece of code shall launch the URL passed as a parameter to the get ... Read More

Jenkins for Test Automation

Debomita Bhattacharjee
Updated on 29-Jun-2021 08:33:00

629 Views

Jenkins is a continuous integration tool and used widely by both the development and testing teams. It comes without any licensing cost and is supported on multiple operating systems.In the test automation world, we run test suites with a large number of test cases, collect results on execution, prepare a dashboard and pinpoint details on failures. All these are supported in Jenkins. Let us see some of the advantages of Jenkins −Jenkins has plugins with which it can be integrated with tests developed in Selenium, Cucumber, TestNG, and so on to execute automated tests for the builds.Tests in a test ... Read More

Modern Web Automation With Python and Selenium

Debomita Bhattacharjee
Updated on 29-Jun-2021 08:28:31

755 Views

We can have modern web automation with Python and Selenium. To configure with Selenium webdriver in Python the steps described below need to be followed −Step1 −To install Python in our system, visit the link − https://www.python.org/downloads/Step 2 − Click on the Download Python button. Once the download is completed, the Python executable file should be available in our system.Step 3 − Double-click on this executable file and the Python installation landing page should be opened. Click on Install Now.Step 4 − Python should be available in the below path −C:\Users\\AppData\Local\Programs\Python\PythonStep 5 − We shall configure the path of ... Read More

How can I capture network traffic of a specific page using Selenium?

Debomita Bhattacharjee
Updated on 29-Jun-2021 08:25:11

5K+ Views

We can capture network traffic on a specific page using Selenium webdriver in Python. To achieve this, we take the help of the JavaScript Executor. Selenium can execute JavaScript commands with the help of the execute_script method.JavaScript command to be executed is passed as a parameter to this method. To capture the network traffic, we have to pass the command: return window.performance.getEntries() as a parameter to the execute_script method.Syntaxr = driver.execute_script("return window.performance.getEntries();")ExampleCode Implementationfrom selenium import webdriver #configure chromedriver path driver = webdriver.Chrome(executable_path='../drivers/chromedriver') #implicit wait driver.implicitly_wait(0.5) #url launch driver.get("https://www.google.com/") #JavaScript command to traffic r = driver.execute_script("return window.performance.getEntries();") for res in r: ... Read More

How to set Proxy in Firefox using Selenium WebDriver?

Debomita Bhattacharjee
Updated on 29-Jun-2021 08:21:57

2K+ Views

We can set a proxy in Firefox using Selenium webdriver. A proxy server enables users to access an URL of an application for testing purposes even with the presence of several layers of network.The setting up of proxy in Firefox can be done with the help of the FirefoxOptions class. The port information and the proxy server host are added to this class. The setting up of the proxy server can also be done by configuring the Firefox Profile in the FirefoxProfile class.ExampleCode Implementation with the FirefoxOptionsimport org.openqa.selenium.Proxy; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.firefox.FirefoxOptions; public class ConfigureProxy {    public ... Read More

How to download all pdf files with selenium python?

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 to create an object of this class and apply add_experimental_option. We have to pass the parameters - prefs and the path where the pdf is to be downloaded to this method. Finally, this information has to be sent to the webdriver object.Syntaxop = Options() p = {"download.default_directory": "../pdf"} op.add_experimental_option("prefs", p)ExampleCode ... Read More

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

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 Runnable Jar under the Java folder. Then click on Next.Step3 − Select the Java class for which we want to create a JAR in the Launch Configurations field. Enter the Export destination: field and select the option Extract required libraries into generated JAR. Then click on Finish.Step4 − Click on ... Read More

How to Download & Install Selenium WebDriver?

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 link and complete the download −Step4 − Launch the Advanced System settings.Step5 − Click on the Environmental Variables button.Step6 − In the System Variables section, click on New and then type JAVA_HOME under the Variable name field and the path of the jdk in the Variable value field.Step7 − Scroll ... Read More

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

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

578 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 error is thrown. The cause of this error is if an element is available in DOM, but its position is dynamic in the front end.Some of the ways to fix this issue are listed below −Usage of explicit wait. We can use wait for the expected condition - visibilityOf. The ... Read More

Advertisements