status-desktop/test/e2e/gui/components/wallet/confirmation_popup.py

16 lines
411 B
Python

import allure
from gui.elements.button import Button
from gui.elements.object import QObject
class ConfirmationPopup(QObject):
def __init__(self):
super(ConfirmationPopup, self).__init__('contextMenu_PopupItem')
self._confirm_button = Button('confirmButton')
@allure.step('Confirm action')
def confirm(self):
self._confirm_button.click()
self.wait_until_hidden()