def custom_step(self): accountMainPage = AccountMainPage() accountMainPage.enterFunction() row = { 'accountUsername': self.data.get('userData').get('accountUsername') } accountMainPage.disableRow(row) accountMainPage.search(row.get('accountUsername')) return accountMainPage.checkupTableData(self.data.get('userData'))
def custom_setUp(self): LoginPage().loginSu() accountMainPage = AccountMainPage() accountMainPage.enterFunction() row = {'accountUsername':self.data.get('userData').get('accountUsername')} accountMainPage.search(row.get('accountUsername')) if not accountMainPage.checkupTableData(row): accountMainPage.createAccount(self.data.get('create_userData')) accountMainPage.search(row.get('accountUsername')) if accountMainPage.checkupTableData(self.data.get('userData')): accountMainPage.disableRow(row)