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