Selenium Selector Utility

Since selector(s) are some of the more complicated elements in a web-page they need to be tested regularly. Because they are complicated you need a tool to test them. The Select library from Selenium does just that. It has nine methods to set and view the various optional values within a select structure. The “list …

Selenium Selector Utility Read More »

Selenium Wait Methods

Selenium convenience methods wait a specified amount of time for various elements or state of elements. It returns one of two states True, False or an exception is raised. These are convenience methods. You can use them or make your own version. If necessary, you can make custom methods. You can and should avoid using …

Selenium Wait Methods Read More »

Selenium 4.0 Action Chains

Selenium is a tool to test web-pages. Modern web-pages have become very complicated with numerous stacks of pages and hundreds of links. Manual testing is tedious and error prone. Having a scripted test ensures that all elements of the web-page are tested in a repeatable fashion. Selenium has been successfully testing web-pages since 2004. Selenium …

Selenium 4.0 Action Chains Read More »

Relative Locators in Selenium

Relative Locators are an important addition to Selenium Source code for Selenium is available on github.com. Here is the full path to the code for Relative Locators github.com/SeleniumHQ/selenium/tree/trunk/py/selenium/webdriver/support above() – finds an element or elements located above a fixed element. below() – finds an element or elements located below a fixed element. near() – finds an element or elements located near a fixed element. …

Relative Locators in Selenium Read More »

Decoding the language of the Web, understanding XML

Solutions to downloading the Web Drivers Enable Pytest for your project Open the Settings/Preferences | Tools | Python Integrated Tools settings dialog as described in Choose your testing framework. In the Default test runner field select pytest. from selenium import webdriverfrom webdriver_manager.firefox import GeckoDriverManagerimport time driver = webdriver.Firefox(executable_path=GeckoDriverManager().install())driver.get(‘http://www.python.org’)value = “Python” in driver.titleprint(“Its “+str(value))driver.quit() https://www.jetbrains.com/help/pycharm/creating-virtual-environment.html#python_create_virtual_env https://selenium-python.readthedocs.io/getting-started.html#simple-usage https://www.jetbrains.com/help/pycharm/installing-uninstalling-and-upgrading-packages.html#packages-tool-window https://www.jetbrains.com/help/pycharm/creating-virtual-environment.html#python_create_virtual_env Adding modulesBecause you are …

Decoding the language of the Web, understanding XML Read More »

python env and venv

Python Virtual Environments Increase Quality Photo by Adam Al Hafizh on Unsplash The purpose of a virtual environment in Python is to control what modules and versions of modules will be used instead of the global collection of Python modules. You will have developed and tested with a specific set of Python modules. When you …

python env and venv Read More »

pytest

Pytest is currently the most popular Testing Framework for the very popular Python Programming Language   if you haven’t done so already install the latest Python from “https://www.python.org/downloads/” PyCharm is the best IDE for Python. Having a good IDE makes you more productive as a developer, tester or integrator. PyCharm has a paid version, but the …

pytest Read More »

Python Code Testing

Kent Back’s original article on testing. Simple Smalltalk Testing: With Patterns by Kent Beck (1997) Ken Beck one of the developers of the xUNIT testing we all use today, set the standards for testing some 20 years ago. In this article, he outlined was what needed to test software. He tells us we need unit …

Python Code Testing Read More »

forms general

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.   cat formshttps://developer.mozilla.org/en-US/docs/Learn/Server-side/Django The purpose of a form is to do the usual CRUD create, read, update and delete functions of the web page model. You have probably used countless web page forms to provide information to …

forms general Read More »

Install DB Browser for SQLite

Install DB Browser for SQLite https://sqlitebrowser.org/dl/ has instructions for various OSes For most Linuxes its # snap install sqlitebrowser

HTML Forms with django

HTML Forms are a key technology to know Django makes building the html code around Forms much easier. Installing Python,  Django, Pycharm and DB Browser Since Django is python based you need to install Python. It’s best to install Python 3. The instructions are here for Windows, Linux/Unix or Mac OSX. “https://www.python.org/downloads/” Install Python 3.9 …

HTML Forms with django Read More »