Tag: Python
-
Verify redirects using Python and Selenium
A quick guide and code example on how to verify URL redirects by launching a real browser using Python and Selenium.
-
Launch Chrome with JS disabled for Selenium (Python)
You may be creating automated tests on a project which needs to function with JavaScript disabled, this is quite uncommon these days but its still worth planning for.
-
Accessing the DataLayer in Selenium using Python
An easy example of storing and returning the contents of a site data layer in Selenium and Python.
-
Getting CSS properties of an element with Python & Selenium
Learn how to target an element and get its CSS properties.
-
Clicking buttons in Python using Selenium
A quick look at some options when you want to click buttons on a webpage using Python and Selenium.
-
Access the browser console in Python & Selenium
A quick example of how to access the browser console when running automated tests in Python using Selenium.
-
Manually raising an AssertionError in Python
How to easily manually raise an AssertionError in Python.
-
Switching to and from an iframe using Python & Selenium
Switching to and from an iframe on a page in target and interact with elements using python is a piece of cake.
-
OS detection in Python (for Selenium WebDriver)
If you work across both PC and MAC to develop Python tests using Selenium you may want to be able to automatically detect which web driver to use.