コード例 #1
0
 def menu_section(self):
     return MenuSection(self.web_driver, By.id('block_top_menu'), self)
コード例 #2
0
 def email_input(self):
     return HtmlInputElement(
         self.web_element,
         By.xpath(
             './/div[@class="form-group" and label[@for="email"]]/input'),
         self)
コード例 #3
0
 def header_section(self):
     return HeaderSection(self.web_driver, By.css('.nav .row'), self)
コード例 #4
0
 def search_section(self):
     return SearchSection(self.web_driver, By.xpath('//div[div/div[@class="row"]/div[@id="header_logo"]]'), self)
コード例 #5
0
 def contact_us_button(self):
     return HtmlButtonElement(self.web_driver, By.css('#contact-link a'),
                              self)
コード例 #6
0
ファイル: section.py プロジェクト: ViktorKhozhaynov/mainRepo
 def orientation_button(self):
     return HtmlButtonElement(self.web_element,
                              By.css('#menuform\\:om_orientation a'), self)
コード例 #7
0
ファイル: section.py プロジェクト: ViktorKhozhaynov/mainRepo
 def t_shirts_button(self):
     return HtmlButtonElement(
         self.web_element,
         By.xpath('.//a[@class="sf-with-ul" and @title="T-shirts"]'), self)
コード例 #8
0
 def sign_in_button(self):
     return HtmlButtonElement(self.web_driver, By.id('SubmitLogin'), self)
コード例 #9
0
ファイル: page.py プロジェクト: ViktorKhozhaynov/mainRepo
 def already_registered_section(self):
     return AlreadyRegisteredSection(self.web_driver, By.id('login_form'),
                                     self)
コード例 #10
0
ファイル: section.py プロジェクト: ViktorKhozhaynov/mainRepo
 def dresses_button(self):
     return HtmlButtonElement(
         self.web_element,
         By.xpath('.//a[@class="sf-with-ul" and @title="Dresses"]'), self)
コード例 #11
0
ファイル: page.py プロジェクト: ViktorKhozhaynov/mainRepo
 def create_account_section(self):
     return CreateAccountSection(self.web_driver,
                                 By.id('create-account_form'), self)
コード例 #12
0
ファイル: section.py プロジェクト: ViktorKhozhaynov/mainRepo
 def dashboard_button(self):
     return HtmlButtonElement(self.web_element,
                              By.css('#menuform\\:om_dashboard a'), self)
コード例 #13
0
ファイル: section.py プロジェクト: ViktorKhozhaynov/mainRepo
 def logout_button(self):
     return HtmlButtonElement(self.web_element,
                              By.css('#menuform\\:om_ext a'), self)
コード例 #14
0
 def password_input(self):
     return HtmlInputElement(
         self.web_element,
         By.xpath(
             './/div[@class="form-group" and label[@for="passwd"]]//input'),
         self)
コード例 #15
0
ファイル: section.py プロジェクト: ViktorKhozhaynov/mainRepo
 def women_button(self):
     return HtmlButtonElement(
         self.web_element,
         By.xpath('.//a[@class="sf-with-ul" and @title="Women"]'), self)
コード例 #16
0
 def forgot_password_button(self):
     return HtmlButtonElement(self.web_element, By.css('p.lost_password a'),
                              self)
コード例 #17
0
ファイル: section.py プロジェクト: ViktorKhozhaynov/mainRepo
 def search_input(self):
     return HtmlInputElement(self.web_driver, By.id('search_query_top'),
                             self)
コード例 #18
0
 def login_button(self):
     return HtmlButtonElement(self.web_element, By.css('.login'), self)
コード例 #19
0
ファイル: page.py プロジェクト: ViktorKhozhaynov/mainRepo
 def content_section(self):
     return ContentSection(self.web_driver, By.id('columns'), self)
コード例 #20
0
 def call_us_now_element(self):
     return HtmlElement(self.web_element, By.css('.shop-phone'), self)
コード例 #21
0
ファイル: section.py プロジェクト: ViktorKhozhaynov/mainRepo
 def users_button(self):
     return HtmlButtonElement(self.web_element,
                              By.css('#menuform\\:om_users a'), self)