+91 9790664230
kumar.arun211@gmail.com

Category: selenium

Blog to learn python and selenium

Javascript using Python Selenium WebDriver

In this tutorial, let’s analyze and see different ways to execute Javascript statements/commands through Python Selenium WebDriver. It may so happen in some real time projects, Selenium WebDriver is not able to perform some action on a particular web element and interacting with web elements through Javascript was the only possible solution. For example, since…
Read more

Python Selenium handle alerts prompts confirmation popups

In this article, let’s experiment different ways to handle alerts and popups on a web page. Web applications displays alert messages to notify user or prompt popups to get some input from user or confirm popups for confirming an user action; And it is usually a standard practice. An Alert or Prompt or Confirm popup…
Read more

Browser drivers with Python Webdriver Manager

We all know that we need to have browser drivers, .exe files like chromedriver.exe and geckodriver.exe in case of windows environment or binary files like chromedriver and gheckodriver in case of linux distributions, in order to run our selenium webdriver automation scripts on chrome and firefox browsers. And also we need to set the path…
Read more

File upload using Python Selenium Webdriver

We have seen how to download file using Python Selenium Webdriver in this article. File upload is also frequently used use case in automation testing and in this article, lets learn how to upload a file using Python Selenium Webdriver. We use the same file upload sample page that we used for our Java example…
Read more

Working with file upload using Java Selenium WebDriver

We have seen how to download file in selenium in this article. Like file download scenario, file upload is also frequently used use case in automation testing. In this article, lets learn how to upload a file using Java Selenium Webdriver. For python example, visit our article. Sample HTML: <!DOCTYPE html> <html> <body> <form action=”**”>…
Read more

how to handle Stale Element Reference Exception in Python Selenium

A stale element reference exception is thrown in one of two cases: The element that we are trying to interact 1. has been deleted entirely 2. no longer attached to the DOM First cause is more common than the second one. We have reference to an element that has been deleted or changed in wep…
Read more

Python selenium commands cheat sheet

Frequently used python selenium commands – Cheat Sheet To import webdriver module in python use below import statement from selenium import webdriver Driver setup: Firefox: firefoxdriver = webdriver.Firefox(executable_path=”Path to Firefox driver”) To download: Visit GitHub Chrome: chromedriver = webdriver.Chrome(executable_path=”Path to Chrome driver”) To download: Visit Here Internet Explorer: iedriver = webdriver.IE(executable_path=”­Pat­h To­ IEDriverServer.exe”) To download:…
Read more

Java selenium commands cheat sheet

Frequently used java selenium commands – Cheat Sheet Visit python selenium commands cheat sheet here. Driver setup: Firefox: System.se­tPr­ope­rty­(“we­bdr­ive­r.g­eck­o.d­riv­er”, “­Pat­h To­ g­eck­odr­ive­r”); To download: Visit GitHub Chrome: System.se­tPr­ope­rty­(“we­bdr­ive­r.chrome.d­riv­er”, “­Pat­h To­ chromedr­ive­r”); To download: Visit Here Internet Explorer: System.se­tPr­ope­rty­(“we­bdr­ive­r.ie.d­riv­er”, “­Pat­h To­ IEDriverServer.exe”); To download: Visit Here Edge: System.se­tPr­ope­rty­(“we­bdr­ive­r.edge.d­riv­er”, “­Pat­h To­ MicrosoftWebDriver.exe”); To download: Visit Here Opera:…
Read more

How to wait for elements in Python Selenium WebDriver

We all know and experimented that Selenium WebDriver can interact with web browser and simulate user actions. User actions could be click, select, type etc.. or combinations of these actions. However most of the user action requires some kind of wait before performing it. Reasons could be many, including but not limited to below. Page…
Read more

Selenium headless mode tests on Chrome and Firefox

In this short article lets experiment on how users can run Selenium headless tests on Chrome and Firefox browser headless mode. Before Selenium headless browser usage, user should know browser options that Selenium provides. Below is brief introduction. Options in Chrome and Firefox browser provides mechanism that we can use to customize and configure a…
Read more

© 2018 Copyrights. All Rights Reserved. Arunkumar Velusamy