| « OPNsense | CherryPy Digest and Basic Authentication Tutorial » |
Python Selenium for Automation
Occasionally, I need to perform some sort of automation task on a website that is beyond the capability of mechanize. In these cases, I generally end up using Selenium to do the automation. Selenium actually remote controls a browser so the browser performs all the Javascript interpretation as it normally would. Here are a number of related links I used for the last Selenium/Python task I performed:
How To Screen Scrape With Python
Unable to hide “Chrome is being controlled by automated software” infobar within Chrome v76
Selenium-Debugging: Element is not clickable at point (X,Y)
Scrolling to element using webdriver?
How to handle child windows in Selenium with python?
Python 3.5 - Selenium - How to handle a new window and wait until it is fully loaded?
Selenium Python Waits
How to check if some text is present on a web page using selenium 2?
How to close all windows that Selenium opens?
How disable debuger on chrome webdriver in Python 3.x?
How to Maximize window in chrome using webDriver (python)
I've used XPath to identify items for Selenium to click. Here are some XPath specific links:
How can I find an element by CSS class with XPath?
Selenium - XPATH - Searching for element by innerHTML
XPath with multiple conditions
How to use XPath contains() here?
XPath: Find element that contains text X and not Y
XPath Find full HTML element ID from partial ID
XPath locator examples