def __init__(self, driver):
     super(MGoodsCategoryPage, self).__init__(driver)
     driver.get(Information.m_homePage_url)
     for cookie in Session.getCookiesFileter(Information.filterDict):
         driver.add_cookie(cookie)
     driver.get(Information.m_goodsCategory_url)
     BasePage.printSymbol(self)
     time.sleep(2)
 def __init__(self, driver):
     super(MobileSearchGoodsPage, self).__init__(driver)
     driver.get(Information.mobile_index_url)
     for cookie in Session.getCookiesFromShelveFileter(
             Information.cookie_mobile_filterDict):
         driver.add_cookie(cookie)
     driver.get(Information.mobile_index_url)
     BasePage.printSymbol(self)
     time.sleep(2)
Example #3
0
 def __init__(self, driver):
     super(BindWechatPage, self).__init__(driver)
     driver.get(Information.login_url)
     for cookie in Session.getCookiesFileter(Information.filterDict):
         driver.add_cookie(cookie)
     driver.get(Information.bindWechat_url)
     BasePage.printSymbol(self)
     time.sleep(2)
     driver.save_screenshot(Information.bindWechat_img_path)
     time.sleep(2)
    def search(self, name):
        if (not op.eq(Information.mobile_index_url, self.driver.current_url)):
            self.driver.get(Information.mobile_index_url)

        search_div = self.driver.find_element_by_xpath(
            '//div[@class = "footer-items"]/div[3]')
        search_div.click()

        search_input = self.driver.find_element_by_xpath(
            '//div[@class = "Rj3w8_4n"]')
        search_input.click()
        search_input.send_keys(name)

        search_button = self.driver.find_element_by_xpath(
            '//div[@class = "_1fALnEid"]')
        search_button.click()
        time.sleep(2)
        BasePage.printSymbol(self)
 def run(self):
     BasePage.printSymbol(self)
Example #6
0
 def clickGrayButton(self):
     BasePage.printSymbol(self)
Example #7
0
 def threeLevelGoodServicePromise(self):
     BasePage.printSymbol(self)
Example #8
0
 def __init__(self, driver):
     super(AddColumn, self).__init__(driver)
     # driver.get('http://120.27.71.205:9004/template/index.do')
     BasePage.printSymbol(self)
     time.sleep(1)
Example #9
0
 def twoLevelGoodSpecSkuSkuMask(self):
     BasePage.printSymbol(self)
Example #10
0
 def oneLevelGoodBasicGallery(self):
     BasePage.printSymbol(self)
Example #11
0
 def oneLevelGoodBasicProperty(self):
     BasePage.printSymbol(self)
Example #12
0
 def oneLevelGoodBasicTitle(self):
     BasePage.printSymbol(self)
Example #13
0
 def oneLevelGoodBasicCategory(self):
     BasePage.printSymbol(self)
Example #14
0
 def __init__(self, driver):
     super(MobileLoginPage, self).__init__(driver)
     driver.get(Information.mobile_login_url)
     BasePage.printSymbol(self)
     time.sleep(2)
Example #15
0
 def threeLevelGoodServiceCostTemplate(self):
     BasePage.printSymbol(self)
Example #16
0
 def __init__(self, driver):
     super(LoginPage, self).__init__(driver)
     driver.get(Information.login_url)
     BasePage.printSymbol(self)
     time.sleep(2)
     driver.save_screenshot(Information.login_img_path)
 def __init__(self, driver):
     super(WangmarketLoginPage, self).__init__(driver)
     driver.get('http://120.27.71.205:9004/login.do')
     BasePage.printSymbol(self)
     time.sleep(2)