Пример #1
0
 def promo_code_input(self):
     return HtmlInputElement(self.web_element, By.id('promocode'), self)
Пример #2
0
 def total_repayable(self):
     return HtmlElement(self.web_element, By.id('calc_total_payable'), self)
Пример #3
0
 def total_repayable_with_discount(self):
     return HtmlElement(self.web_element, By.id('calc_new_total_payable'),
                        self)
Пример #4
0
 def promo_code_button(self):
     return HtmlElement(self.web_element, By.id('promocode-button'), self)
Пример #5
0
 def promo_code_info_label(self):
     return HtmlElement(self.web_element, By.id('promo-code-info'), self)
Пример #6
0
 def logo(self):
     return HtmlElement(self.web_driver, By.id('logo'), self)
Пример #7
0
 def title(self):
     return HtmlElement(self.web_driver, By.css('.welcome-block h1'), self, expected_text='Short Term Loans')
Пример #8
0
 def discount_overlay(self):
     return DiscountOverlay(self.web_driver, By.class_name('Campaign__canvas'), self)
Пример #9
0
 def loan_section(self):
     return LoanSection(self.web_driver, By.css('.loan-details'), self)
Пример #10
0
 def promo_code_text(self):
     return HtmlElement(
         self.web_element,
         By.xpath('.//span[contains(text(), "Use promocode")]'), self)
Пример #11
0
 def close_button(self):
     return HtmlElement(self.web_element,
                        By.css('button.desmoines-CloseButton'), self)
Пример #12
0
 def title(self):
     return HtmlElement(self.web_element, By.css('h5.hide-for-small-only'),
                        self)