def test_04Login(self): driver = self.driver loginObj = LoginPage(driver) loginObj.Login(Utils.Email, Utils.Password) ss = SeleniumDriver(self.driver) ss.screenShot(Utils.whoami(), time, ss_path) title_PhonePage = driver.title assert title_PhonePage == 'nopCommerce demo store. Shopping Cart', 'Page not loaded'
def test_03Cart_validations(self): driver = self.driver cartObj = CartPage(driver) cartObj.cart_validation() ss = SeleniumDriver(self.driver) ss.screenShot(Utils.whoami(), time, ss_path) title_PhonePage = driver.title assert title_PhonePage == 'nopCommerce demo store. Login', 'Page not loaded'
def test_02Phone_buy(self): driver = self.driver cellObj = CellPhonePage(driver) cellObj.SelectPhone() ss = SeleniumDriver(self.driver) ss.screenShot(Utils.whoami(), time, ss_path) title_PhonePage = driver.title assert title_PhonePage == 'nopCommerce demo store. Shopping Cart', 'Page not loaded'
def test_01HomePage(self): homeObj = HomePage(self.driver) title = homeObj.verifyHomePageLoad() assert title == True homeObj.NavigateToCellPhone() ss = SeleniumDriver(self.driver) ss.screenShot(Utils.whoami(), time, ss_path)
def test_01HomePage(self): driver = self.driver self.driver.get(URL) homeObj = HomePage(driver) title = homeObj.verifyHomePageLoad() assert title == True ss = SeleniumDriver(self.driver) ss.screenShot(Utils.whoami(), time, ss_path) homeObj.NavigateToOthers() ss = SeleniumDriver(self.driver) ss.screenShot(Utils.whoami(), time, ss_path)
def test_06Address(self): driver = self.driver addressObj = Address(driver) testName = Utils.whoami() ss = SeleniumDriver(self.driver) ss.screenShot(testName, time, ss_path) addressObj.continueAddress() ss.screenShot(Utils.whoami(), time, ss_path)
def test_07OrderConfirmation(self): driver = self.driver orderConfObj = OrderConfirmation(driver) orderConfObj.orderConfirmationdetails() ss = SeleniumDriver(self.driver) ss.screenShot(Utils.whoami(), time, ss_path)
def test_06Payment(self): driver = self.driver paymentObj = Payment(driver) paymentObj.PaymentOptions() ss = SeleniumDriver(self.driver) ss.screenShot(Utils.whoami(), time, ss_path)
def test_05Address(self): driver = self.driver addressObj = Address(driver) addressObj.AddressInput() ss = SeleniumDriver(self.driver) ss.screenShot(Utils.whoami(), time, ss_path)
def test_04Login(self): driver = self.driver loginObj = LoginPage(driver) loginObj.Checkout_as_Guest() ss = SeleniumDriver(self.driver) ss.screenShot(Utils.whoami(), time, ss_path)
def test_03Cart_validations(self): driver = self.driver cartObj = CartPage(driver) cartObj.cart_validation() ss = SeleniumDriver(self.driver) ss.screenShot(Utils.whoami(), time, ss_path)
def test_02Speaker_buy(self): driver = self.driver cellObj = OtherItems(driver) cellObj.SelectSpeakers() ss = SeleniumDriver(self.driver) ss.screenShot(Utils.whoami(), time, ss_path)
def test_02Phone_buy(self): driver = self.driver cellObj = CellPhonePage(driver) cellObj.SelectPhone() ss = SeleniumDriver(self.driver) ss.screenShot(Utils.whoami(), time, ss_path)
def test_05Checkout(self): driver = self.driver checkoutObj = CheckOut(driver) checkoutObj.Check_out() ss = SeleniumDriver(self.driver) ss.screenShot(Utils.whoami(), time, ss_path)