Installation
This section shows how you can install this BalderHub package.
Install python
For this python in the version 3.9 or higher is required. You can get the latest version of python at
https://www.python.org/downloads/ or install it with your packet management
system of your operating system.
Install balder
You can easily install balder in different ways, that are described here.
python -m pip install baldertest
Install balderhub-html
You can easily install this package with the following command:
python -m pip install balderhub-html
Install and Assign GUIControl Package
If you want to control the HTML components in this package, you’ll need a package that implements GUI controls, at least at the setup level.
The following list shows some examples of these packages, along with instructions on how to install them:
Project |
Install with Command |
Description |
Link to Documentation |
|---|---|---|---|
|
|
package to control browsers with selenium |
|
|
package to control browsers with playwright |
NOT YET RELEASED |
|
|
package to control browsers or android/ios apps with Appium |
NOT YET RELEASED |
|
|
package for testing textual applications (see Textual Documentation) |
NOT YET RELEASED |
Just assign these to the device that represents the HTML page, and this package will handle everything else.
import balder
from balderhub.selenium.lib.setup_features import SeleniumChromeWebdriverFeature # or any other WebDriver implementing feature
from lib.pages import MyPage
class SetupBase(balder.Setup):
class Client(balder.Device):
selenium = SeleniumChromeWebdriverFeature()
page = MyPage()
Read more about the details in the Example Section.