2024-07-17 12:19:34 +00:00
|
|
|
import allure
|
|
|
|
|
|
|
|
from gui.components.base_popup import BasePopup
|
|
|
|
from gui.elements.button import Button
|
2024-11-20 16:34:34 +00:00
|
|
|
from gui.elements.object import QObject
|
2024-07-17 12:19:34 +00:00
|
|
|
from gui.objects_map import names
|
|
|
|
|
|
|
|
|
2024-11-20 16:34:34 +00:00
|
|
|
class ShareUsageDataPopup(QObject):
|
2024-07-17 12:19:34 +00:00
|
|
|
|
|
|
|
def __init__(self):
|
2024-11-20 16:34:34 +00:00
|
|
|
super().__init__(names.share_usage_data_StatusButton)
|
2024-07-17 12:19:34 +00:00
|
|
|
self._not_now_button = Button(names.not_now_StatusButton )
|
|
|
|
self._share_usage_data_button = Button(names.share_usage_data_StatusButton)
|
|
|
|
|
|
|
|
@allure.step('Click not now button')
|
|
|
|
def skip(self):
|
|
|
|
self._not_now_button.click()
|