def cgd(self): logging.info('查看采购单') self.driver.find_elements(*self.cga)[3].click() c = Common(self.driver) c.swipeDown() time.sleep(3) c.getScreenShot("7采购单列表") for i in range(2): self.driver.find_elements(*self.cgb)[i].click() time.sleep(0.5) c.getScreenShot("8采购单" + str(i)) self.driver.find_element(*self.fh).click()
def sgd(self): logging.info('查看申购单') self.driver.find_elements(*self.sga)[1].click() c = Common(self.driver) c.swipeDown() time.sleep(3) c.getScreenShot("5申购单列表") self.driver.find_elements(*self.sgb)[0].click() time.sleep(2) c.getScreenShot("6申购单详情") self.driver.find_element(*self.fh).click()
def sp_sgd(self): logging.info('进入待审批') self.driver.find_elements(*self.dsp)[0].click() c = Common(self.driver) c.swipeDown() time.sleep(1) c.getScreenShot("3待审批申购单列表") self.driver.find_elements(*self.sgdxq)[0].click() self.driver.find_element(*self.quanxuan).click() self.driver.find_element(*self.sptg).click() self.driver.find_element(*self.qrsp).click() time.sleep(1) c.getScreenShot("4审批通过详情") self.driver.find_element(*self.fh1).click() self.driver.find_element(*self.fh2).click()