2023-09-01 11:18:04 +00:00
|
|
|
import allure
|
|
|
|
|
2023-10-06 08:33:42 +00:00
|
|
|
from gui.elements.button import Button
|
|
|
|
from gui.elements.object import QObject
|
2023-09-01 11:18:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
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()
|