e2e.core.mixin.ui

class e2e.core.mixin.ui.UIMixin

Bases: BaseUIMixin

A combined mixin to work with UI assertions and actions.

e2e.core.mixin.ui.base

class e2e.core.mixin.ui.base.BaseUIMixin

Bases: WDMixin

property button: ElementCallable[Button]
property check: ElementCallable[Element]
property element: ElementCallable[Element]
property textfield: ElementCallable[TextField]

e2e.core.mixin.ui.wd

class e2e.core.mixin.ui.wd.WDMixin

Bases: LoggerMixin

activate_app(app_id: str)
property app_id: str | None
execute_script(script: str, *args)
hide_keyboard(key_name: str | None = None, key: str | None = None, strategy: str | None = None)
launch_app_with_env(app_id: str, **kwargs)

Launch app with environment. iOS uses environment, Android uses extras.

Refer to these docs for the environment params. - iOS: https://appium.github.io/appium-xcuitest-driver/latest/reference/execute-methods#mobile-launchapp - Android: https://github.com/appium/appium-uiautomator2-driver/tree/master#mobile-startactivity

relaunch_app(app_id: str | None = None, **kwargs)
swipe(direction: str = 'up', xy_ratio_start: Tuple[float, float] | None = None, xy_ratio_end: Tuple[float, float] | None = None, duration: float = 0)
tap_area(area: Literal['center', 'top', 'bottom', 'left', 'right', 'top_left', 'top_right', 'bottom_left', 'bottom_right'])
tap_coordinates(xy: List[Tuple[float, float]] | Tuple[float, float] | None = None, xy_ratios: List[Tuple[float, float]] | Tuple[float, float] | None = None, duration: float | None = None)
terminate_app(app_id: str | None = None)
wait(seconds: float = 1)
wd: WebDriver
property window_size: Tuple[float, float]