Exemple #1
0
 def filterPurchaseRequestByID(self, purchaseRequestID):
     try:
         self.enter(self.txtPurchaseRequestKeyWord, purchaseRequestID)
         self.clickFilterButton()
         #wait for searching
         wait(2)
     except Exception,e:
         print str(e)
Exemple #2
0
 def deleteAPurchaseRequestByID(self,purchaseRequestID):
     self.switchRoleByRoleName(self.cfLoginAsRequestor)
     purchaseRequestExist = self.doesPurchaseRequestIDExist(purchaseRequestID)
     if purchaseRequestExist == True:
         self.selectAPurchaseRequestByID(purchaseRequestID)
         self.clickDeleteButton()
         
         #Click OK button on CRM pop up
         self.clickOKButton()
         #wait for purchase request deleted
         wait(2)
     else:
         logInfo("The purchase does not exist in the system")
Exemple #3
0
    def selectExpectedDate(self, expectedDate):
        self.click(self.btnDatePickerExpectedDate)

        #wait for date time picker display
        self.waitForElementExisted(self.pickerExpectedDate, 2000)

        #split expectedDate into Day, Month, Year
        x = expectedDate.find("/")
        day = expectedDate[:x]
        expectedDate = expectedDate[x + 1:]
        x = expectedDate.find("/")
        month = expectedDate[:x]
        year = expectedDate[x + 1:]

        self.selectExpectedMonth(month)
        #wait for date time picker loaded
        wait(1)
        self.selectExpectedYear(year)
        #wait for date time picker loaded
        wait(1)
        self.selectExpectedDay(day)
 def selectExpectedDate(self, expectedDate):
     self.click(self.btnDatePickerExpectedDate)
     
     #wait for date time picker display
     self.waitForElementExisted(self.pickerExpectedDate, 2000)
     
     #split expectedDate into Day, Month, Year
     x = expectedDate.find("/")
     day = expectedDate[:x]
     expectedDate = expectedDate[x+1:]
     x = expectedDate.find("/")
     month = expectedDate[:x]
     year = expectedDate[x+1:]
     
     self.selectExpectedMonth(month)
     #wait for date time picker loaded
     wait(1)
     self.selectExpectedYear(year)
     #wait for date time picker loaded
     wait(1)
     self.selectExpectedDay(day)