status-desktop/test/e2e/gui/components/base_popup.py

16 lines
306 B
Python
Raw Normal View History

import allure
import driver
from gui.elements.object import QObject
from gui.objects_map import names
class BasePopup(QObject):
def __init__(self):
2024-10-10 10:26:23 +00:00
super(BasePopup, self).__init__(names.basePopup)
@allure.step('Close')
def close(self):
driver.type(self.object, '<Escape>')