Exemplo n.º 1
0
        public void CreateAccountTest()
        {
            //Verify If currently is homepage;
            Assembly.Pages.Home.IsAt();

            //Click "Hello, Sign in"
            bool helloSignInClickReady = WebDriverFacade.WaitUntilElementExists(By.XPath(HomePage.HELLOSIGNIN)) == null ? false : true;

            Assert.IsTrue(helloSignInClickReady);
            Assembly.Pages.Home.HelloSignInClick();

            //wait until Sign in Page is ready;
            bool SignInPageIsReady = WebDriverFacade.WaitUntilElementExists(By.XPath(SignInPage.CREATEACCOUNTBUTTON)) == null ? false : true;

            Assert.IsTrue(SignInPageIsReady);

            //Click "Create your Amazon account" button;
            Assembly.Pages.SignInPage.CreateAccountClick();

            //wait until Sign up Page is Ready;
            bool SignUpPageIsReady = WebDriverFacade.WaitUntilElementExists(By.XPath(SignUpPage.BTNCREATEACCOUNT)) == null ? false : true;

            Assert.IsTrue(SignUpPageIsReady);

            //Filled the form;
            Assembly.Pages.SignUpPage.FilledTheForm();
            //Verify Create Account exist and Display;
            Assembly.Pages.SignUpPage.VerifyCreateAcccountButtonExist();
            Assembly.Pages.SignUpPage.VerifyCreateAccountButtonDisplay();
        }
Exemplo n.º 2
0
        public void Initiate()
        {
            Browsers browser = Browsers.Chrome;

            driver = new WebDriverFacade(browser);
            driver.MaximizeWindow();
            driver.GoToURL(baseUrl);
            homePage = new CdHomePage(driver);
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            using (var driver = new WebDriverFacade("https://www.ebay.com/", args))
            {
                // NOTE: two type of tests which do the same actions
                //  ITest test = new TestCases.KeywordDriven.AddItemsToCartTest(driver, new KeywordMapping(), driver.Logger, @"Data/eCommerceKeywords.csv");
                ITest test = new TestCases.DataDriven.AddItemsToCartTest(driver, new DataMapping(), @"Data/addItemsToCartData.csv");

                test.Run();
                Console.Write("\nPress any key to finish test... ");
                Console.ReadLine();
            }
        }
Exemplo n.º 4
0
 public CdFindPartnerPage(WebDriverFacade driver) : base(driver)
 {
 }
Exemplo n.º 5
0
 public void EndTest()
 {
     WebDriverFacade.Close();
 }
Exemplo n.º 6
0
 public void StartUpTest()
 {
     WebDriverFacade.Init();
 }
Exemplo n.º 7
0
 public CdCertificationModelPage(WebDriverFacade driver) : base(driver)
 {
 }
Exemplo n.º 8
0
 public CdTechnologyPage(WebDriverFacade driver) : base(driver)
 {
 }
Exemplo n.º 9
0
 public CdHomePage(WebDriverFacade driver) : base(driver)
 {
     headerSection = new HeaderSection(driver);
 }
Exemplo n.º 10
0
 public PartnerSection(WebDriverFacade driver, IWebElement rootElement)
 {
     this.driver      = driver;
     this.rootElement = rootElement;
 }
Exemplo n.º 11
0
 public BasePage(WebDriverFacade driver)
 {
     this.driver = driver;
     driver.WaitForPageLoaded();
 }
Exemplo n.º 12
0
 public HeaderSection(WebDriverFacade driver) : base(driver)
 {
 }
Exemplo n.º 13
0
 public CdLearningAndSupportPage(WebDriverFacade driver) : base(driver)
 {
 }