def checkOnlyOnePurchaseRequestMarchingID(self, purchaseRequestID): tblPurchaseRequestRow = self.tblPurchaseRequest + "//tr[contains(@class, 'content')]" rowCount = len(AbstractPage.Browser().find_elements_by_xpath(tblPurchaseRequestRow)) self.verifyTrue(rowCount == 1, "There is only one Purchase Request ID displaying", "There is NOTonly one Purchase Request ID displaying")