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

15 lines
392 B
Python
Raw Normal View History

import allure
from gui.elements.qt.object import QObject
class ContextMenu(QObject):
def __init__(self):
super(ContextMenu, self).__init__('contextMenu_PopupItem')
self._menu_item = QObject('contextMenuItem')
@allure.step('Select in context menu')
def select(self, value: str):
self._menu_item.real_name['text'] = value
self._menu_item.click()