Ejemplo n.º 1
0
def switchTo200(login):
    driver = login
    recipientBoxPageCommon(driver).switchPageTo200()


# @pytest.fixture(scope="session",autouse=False)
# def switchTo2001(login001):
#     driver1 = login001
#     recipientBoxPageCommon(driver1).switchPageTo200()
Ejemplo n.º 2
0
 def __init__(self, driver):
     super(dealingEmailPage, self).__init__(driver)
     self.click_ele(self.dealingEmailPage_dealingEmailBtn_loc,
                    key="点击往来邮件按钮")
     self.emailDetailPageCommon = emailDetailPageCommon(driver)
     self.dealingEmailPageCommon = dealingEmailPageCommon(driver)
     self.recipientBoxPageCommon = recipientBoxPageCommon(driver)
Ejemplo n.º 3
0
 def __init__(self,driver):
     super(emailDetailPage,self).__init__(driver)
     self.writeMailCommon = writeMailCommon(driver)
     self.recipientBoxPageCommon = recipientBoxPageCommon(driver)
     self.emailDetailPageCommon = emailDetailPageCommon(driver)
     self.mailSettingPageEmailTemplatePageCommon = mailSettingPageEmailTemplatePageCommon(driver)
     self.mailSettingPageBlackListPageCommon = mailSettingPageBlackListPageCommon(driver)
Ejemplo n.º 4
0
 def __init__(self, driver):
     super(mailSettingPageShowSettingPage, self).__init__(driver)
     # self.find_element(self.mailSettingPageShowSettingPage_baseSettingBtn_loc).click()
     self.click_ele(self.mailSettingPageShowSettingPage_showSettingBtn_loc,
                    index=0)
     self.writeMailCommon = writeMailCommon(driver)
     self.recipientBoxPageCommon = recipientBoxPageCommon(driver)
 def __init__(self, driver):
     super(customerInfoShowPage, self).__init__(driver)
     self.recipientBoxPageCommon = recipientBoxPageCommon(driver)
     self.addFollowPageCommon = addFollowPageCommon(driver)
     self.relatedBusinessPageCommon = relatedBusinessPageCommon(driver)
     self.writeMailCommon = writeMailCommon(driver)
     with allure.step("点击查询箱:合作客户,勿动"):
         queryBox_loc = (By.XPATH,
                         self.receiptBox_loc[1].replace("收件箱", "合作客户,勿动"))
         self.click_ele(queryBox_loc, key="点击查询箱:合作客户,勿动")
     with allure.step("点击客户icon图标"):
         self.click_ele(self.recipientBoxPage_iconBtn_loc, key="点击客户icon图标")
Ejemplo n.º 6
0
 def __init__(self, driver):
     super().__init__(driver)
     self.seniorSearchEmailPageCommon = seniorSearchEmailPageCommon(driver)
     self.recipientBoxPageCommon = recipientBoxPageCommon(driver)
     self.emailDetailPageCommon = emailDetailPageCommon(driver)
     self.totalEmailNum_v1 = self.get_elementText(self.emailNumTotal_loc)
     try:
         self.switch_mainPage()
         self.click_ele(self.seniorSearchEmailPage_seniorSearchBtn_loc)
     except Exception:
         traceback.print_exc()
     finally:
         self.switch_frame(self.mainFrame_loc)
Ejemplo n.º 7
0
 def __init__(self, driver):
     super(showSettingPage, self).__init__(driver)
     self.recipientBoxPageCommon = recipientBoxPageCommon(driver)
 def __init__(self, driver):
     super(relatedBusinessPage, self).__init__(driver)
     self.emailDetailPageCommon = emailDetailPageCommon(driver)
     self.relatedBusinessPageCommon = relatedBusinessPageCommon(driver)
     self.recipientBoxPageCommon = recipientBoxPageCommon(driver)
     self.writeMailCommon = writeMailCommon(driver)
Ejemplo n.º 9
0
 def __init__(self, driver):
     super(queryBoxPage, self).__init__(driver)
     self.queryBoxPageCommon = queryBoxPageCommon(driver)
     self.recipientBoxPageCommon = recipientBoxPageCommon(driver)
     self.emailDetailPageCommon = emailDetailPageCommon(driver)
Ejemplo n.º 10
0
 def __init__(self, driver):
     super(mailSettingPageApprovalRulePage, self).__init__(driver)
     self.recipientBoxPageCommon = recipientBoxPageCommon(driver)
Ejemplo n.º 11
0
 def __init__(self, driver):
     super(customBoxPage, self).__init__(driver)
     self.customBoxPageCommon = customBoxPageCommon(driver)
     self.recipientBoxPageCommon = recipientBoxPageCommon(driver)
     self.moveToBoxPageCommon = moveToBoxPageCommon(driver)
 def __init__(self, driver):
     super(moveToBoxPageCommon, self).__init__(driver)
     self.recipientBoxPageCommon = recipientBoxPageCommon(driver)