27 lines
889 B
Python
27 lines
889 B
Python
import allure
|
|
|
|
from gui.components.base_popup import BasePopup
|
|
from gui.elements.qt.button import Button
|
|
from gui.elements.qt.check_box import CheckBox
|
|
|
|
|
|
class BeforeStartedPopUp(BasePopup):
|
|
|
|
def __init__(self):
|
|
super(BeforeStartedPopUp, self).__init__()
|
|
self._acknowledge_checkbox = CheckBox('acknowledge_checkbox')
|
|
self._terms_of_use_checkBox = CheckBox('termsOfUseCheckBox_StatusCheckBox')
|
|
self._get_started_button = Button('getStartedStatusButton_StatusButton')
|
|
|
|
@property
|
|
@allure.step('Get visible attribute')
|
|
def is_visible(self) -> bool:
|
|
return self._get_started_button.is_visible
|
|
|
|
@allure.step('Allow all and get started')
|
|
def get_started(self):
|
|
self._acknowledge_checkbox.set(True)
|
|
self._terms_of_use_checkBox.set(True, x=10)
|
|
self._get_started_button.click()
|
|
self.wait_until_hidden()
|