DriverWrapper¶
Overview¶
The DriverWrapper module provides a unified interface to interact with different web and mobile automation frameworks,
such as Selenium, Appium, and Playwright. It abstracts the complexities of these frameworks and offers a seamless
experience for managing driver sessions, performing operations, and handling cross-platform automation tasks.
Core Benefits & Rules¶
Centralized Session Management:
The
DriverWrapperSessionsinterface simplifies the management of driver sessions, offering a centralized way to handle multiple sessions throughout your testing process.
Seamless Integration:
The
DriverWrapperand its underlyingDriverinstance are easily accessible within yourPage,Group, andElementobjects, allowing for consistent and efficient interactions across your test suite.
Dynamic Status Attributes:
DriverWrapperprovides various status attributes (e.g.,is_mobile,is_selenium,is_playwright) that help you tailor your test behavior based on the current driver environment, ensuring more precise control and adaptability in your tests.
Optimal Driver Setup:
The initialization of the source driver should be handled within your testing framework. This approach ensures that the browser or device starts with the most appropriate configuration, leading to more reliable and efficient test executions.
This section covers features and behaviour of DriverWrapper class detail: