def test3_login(self): m = LoginPage(self.driver) # self.u=m.set_username(' ') self.p = m.set_password(str(ReadExcel('admintest', 8, 7))) time.sleep(2) self.c = m.click() time.sleep(2) self.e = m.get_errortitle() self.assertEqual(self.e, ReadExcel('admintest', 8, 9))
def setUp(self): self.url = adminurl() self.driver = webdriver.Chrome() self.driver.get(self.url) # self.driver.maximize_window() time.sleep(2) m = LoginPage(self.driver) m.set_username('admin') m.set_password('Raysync@123') m.click() time.sleep(3)
def test1_newlogin(self): m=LoginPage(self.driver) self.a=m.set_username(ReadExcel('admintest',35,6)) self.b=m.set_password(ReadExcel('admintest',37,6)) self.c=m.click() time.sleep(4) self.d=m.get_DiaglogTitle() self.assertEqual(self.d,ReadExcel('admintest',10,9))
def test5_login(self): m = LoginPage(self.driver) self.u = m.set_username(ReadExcel('admintest', 10, 6)) self.p = m.set_password(ReadExcel('admintest', 10, 7)) self.c = m.click() time.sleep(4) self.f = m.get_DiaglogTitle() self.assertEqual(self.f, ReadExcel('admintest', 10, 9)) time.sleep(1)