test: test_wallet_send_0_eth added

This commit is contained in:
Valentina Novgorodtceva 2023-12-05 20:23:02 +07:00 committed by Valentina1133
parent fa48dad825
commit 7e967e286c
1 changed files with 14 additions and 0 deletions

View File

@ -126,6 +126,20 @@ class QObject:
) )
LOG.info(f'{self}: native clicked') LOG.info(f'{self}: native clicked')
@allure.step('Native click {0}')
def native_click(
self,
x: typing.Union[int, driver.UiTypes.ScreenPoint] = None,
y: typing.Union[int, driver.UiTypes.ScreenPoint] = None,
button: driver.MouseButton = None
):
driver.nativeMouseClick(
x or self.bounds.x + self.width // 2,
y or self.bounds.y + self.height // 2,
button or driver.MouseButton.LeftButton
)
LOG.info(f'{self}: native clicked')
@allure.step('Hover {0}') @allure.step('Hover {0}')
def hover(self, timeout_msec: int = configs.timeouts.UI_LOAD_TIMEOUT_MSEC): def hover(self, timeout_msec: int = configs.timeouts.UI_LOAD_TIMEOUT_MSEC):
def _hover(): def _hover():