Vladimir Druzhinin 0c63fc6f93 Ci/74 jenkins file (#142)
* OS native dialog replaced on Qt dialog

* Starting fluxbox added to make File Dialog visible
2023-10-06 10:33:42 +02:00

16 lines
443 B
Python

import allure
import configs
import driver
from gui.elements.object import QObject
class CheckBox(QObject):
@allure.step("Set {0} value: {1}")
def set(self, value: bool, x: int = None, y: int = None):
if self.is_checked is not value:
self.click(x, y)
assert driver.waitFor(
lambda: self.is_checked is value, configs.timeouts.UI_LOAD_TIMEOUT_MSEC), 'Value not changed'