๐
Overview docs: | |
---|---|
tests: | |
package: | |
infra: |
๐
What is Sylenium? The goal of sylenium is to create a test framework agnostic browser (selenium wrapper) automation library to help development teams write end to end tests for their web applications without all the necessary boilerplate that is required to achieve stability with selenium.
๐
Official Documentation https://sylenium.readthedocs.io/
๐
Configuring Sylenium Sylenium uses a smart default configuration for most use cases, however the customisation options are endless. Managing the 'global' configuration can be achieved as outlined below:
from sylenium import Configuration
from sylenium import configure
configure(Configuration(headless=False, remote=True, explicit_waiting=15.00))
# Now all drivers will use this 'global configuration'
go("https://www.google.com")
On the fly per driver configurations?
with get_driver(Configuration(headless=True, polling_interval=2.50, default_selector='ID')):
go('https://www.google.com')
๐
Quick Start Here is a simple way to get going for a standalone simple library script that requires some browser interaction:
import sylenium import *
def main():
# google search => No setup at all, just install sylenium with pip
with get_driver():
go("https://www.bing.com")
find(ById("sb_form_q")).set_text("Hello World").clear().set_text("My Search").press_enter()
find(ById("b_results")).should_be(Visible).should_contain(Text("My Search"))
๐
Sylenium-pytest Plugin (coming soon)