Modules are the backbone to Dyson. Modules represent specific steps that are able to be executed within tests.
There are two repositories that house Dyson's modules. These repositories are
Table of Contents
The core modules that are included with Dyson are those that are primarily related to the operation of selenium.
These modules include specific actions that can be performed with Selenium, and validations that can be performed by Dyson
The extra modules included with Dyson are modules that aren't pertinent to the operation of Dyson.
In this repository, you will find "helpful" steps, or "sugar" steps that make Dyson easier to use.
As per the whole idea with Dyson - you are able to override pretty much everything. This includes overriding core modules.
Let's say that you need to override the click
module, as it doesn't operate as you'd expect.
You can create click.py
in the modules
directory, and follow the guidelines on creating a module
to customize your module to do as you wish.
There are times where you might to override a module to wait for an element before interacting with it. For this, you want to utilize keywords.