Beispiel #1
0
    def __init__(self):
        super().__init__()
        self.url = "https://sprintboards.io/auth/login"

        self.email = s(by.css("[type=email]"))
        self.password = s(by.css("[type=password]"))
        self.login_button = s(by.css("[type=submit]"))
Beispiel #2
0
 def __init__(self, element: SeleneElement):
     self.element = element
     self.title = element.s(by.css("h6"))
     self.description = element.s(by.css("div.card-body p"))
     self.like_button = \
         element.s(by.xpath(".//button[*[name()='svg' and contains(@class,'fa-thumbs-up')]]"))
     self.delete_button = \
         element.s(by.xpath(".//button[*[name()='svg' and contains(@class,'fa-times-circle')]]"))
     self.loading_circle = element.s(by.css("svg.fa-circle-notch"))
    def __init__(self):
        super().__init__()
        self.url = "https://sprintboards.io/boards/create"

        self.title = s(by.css("h1"))
        self.session_name = s(by.css("[placeholder=\"Session Name\"]"))
        self.owner = s(by.css(".custom-select"))
        self.create_board_button = s(by.css("[type=submit]"))
        self.popup_title = s(by.css(".swal-title"))
 def check_login_page_show(self) -> None:
     """ Проверить отображение страницы входа в приложение """
     self.log.debug(f"Work '{self.get_method_name()}'")
     check_locator = "button[type='submit']"  # Кнопка ввода
     try:
         self.flash(s(by.css(check_locator))).is_displayed()
         self.screen_shot("Страница входа в приложение удачно открылась")
     except NoSuchElementException:
         self.screen_shot("Страница входа в приложение не открылась")
         assert False
Beispiel #5
0
    def __init__(self):
        super().__init__()
        self.url = "https://sprintboards.io/boards"

        self.green_plus = s(by.css("button.text-success>svg[data-icon=plus-circle]"))
        self.red_plus = s(by.css("button.text-danger>svg[data-icon=plus-circle]"))

        self.add_card_modal = s(by.css("#add-card-modal"))
        self.add_card_title = s(by.xpath("//div[h5[text()=\"Title\"]]//input"))
        self.add_card_description = s(by.xpath("//div[h5[text()=\"Description\"]]//textarea"))
        self.add_card_button = s(by.css("div.modal-footer button"))

        self.red_cards = ss(by.css("div.card.border-danger"))
        self.green_cards = ss(by.css("div.card.border-success"))

        self.modal_title = s(by.css("div.modal-title"))
        self.modal_body = s(by.css("div.modal-body"))
        self.modal_confirm_button = s(by.css("div.modal-footer button.btn-danger"))
Beispiel #6
0
 def __init__(self):
     self.text_center = s(by.css(".text-center"))
     self.account_dropdown = s(by.css("#account-dropdown"))
     self.create_board = s(by.xpath("//li[a/text()=\"Create Board\"]"))