mirror of
https://github.com/status-im/desktop-qa-automation.git
synced 2025-02-24 10:08:22 +00:00
chore: added attempts for opening more options menu
This commit is contained in:
parent
20dbd13edc
commit
6852f32681
@ -332,9 +332,15 @@ class LeftPanel(QObject):
|
|||||||
driver.mouseClick(self.find_category_in_list(category_name).object)
|
driver.mouseClick(self.find_category_in_list(category_name).object)
|
||||||
|
|
||||||
@allure.step('Open more options')
|
@allure.step('Open more options')
|
||||||
def open_more_options(self):
|
def open_more_options(self, attempts: int = 2):
|
||||||
self._arrow_button.click()
|
self._arrow_button.click()
|
||||||
self._more_button.click()
|
try:
|
||||||
|
self._more_button.click()
|
||||||
|
except LookupError as err:
|
||||||
|
if attempts:
|
||||||
|
return self._more_button.click(attempts - 1)
|
||||||
|
else:
|
||||||
|
raise err
|
||||||
return self
|
return self
|
||||||
|
|
||||||
@allure.step('Get visibility state of delete item')
|
@allure.step('Get visibility state of delete item')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user