public void HomePageActionWithDeleteitem() { screenshot screens = new screenshot(); BackPackImg.Click(); screens.Takescreenshot3("filename"); ImgBackButton.Click(); screens.Takescreenshot3("filename"); ImgADDTOCARTButton.Click(); screens.Takescreenshot3("filename"); CartImg.Click(); screens.Takescreenshot3("filename"); RemoveButton.Click(); screens.Takescreenshot3("filename"); ConitnueShoppingButton.Click(); screens.Takescreenshot3("filename"); CartImg.Click(); screens.Takescreenshot3("filename"); }
public void HomePageActionWithAdditem() { screenshot screens = new screenshot(); //this fuction is not working yet //WebDriverWait wait = new WebDriverWait(CommonDriver.driver, new TimeSpan(0, 0, 10)); //wait.Until(ExpectedConditions.ElementIsVisible(By.XPath("//div[@id='shopping_cart_container']"))); //SelectElement Oselection = new SelectElement(SelectButton); //Oselection.SelectByText("Name (Z to A)"); BackPackImg.Click(); screens.Takescreenshot2("filename"); screens.Takescreenshot9("filename"); ImgBackButton.Click(); screens.Takescreenshot2("filename"); screens.Takescreenshot9("filename"); ImgADDTOCARTButton.Click(); screens.Takescreenshot2("filename"); screens.Takescreenshot9("filename"); CartImg.Click(); Console.WriteLine("The item that the customer chose is " + ItemName.Text); screens.Takescreenshot2("filename"); screens.Takescreenshot9("filename"); }