public void taskTest()
 {
     CustomMethods.webDriver.Navigate().GoToUrl("https://www.paypal.com/");
     PaypalStartPage startPage = new PaypalStartPage();
     PaypalSigninPage signInPage = startPage.loginToPaypal();
     //Next tab key sending is purposed to avoid silverlight pop-up browser built-in addon
     CustomMethods.webDriver.FindElements(By.CssSelector("*"))[0].SendKeys(Keys.Tab);
     signInPage.logInWithCredentials(email, password)
         .enterToMyCabinet()
         .enterToProfile()
         .enterToChangeAddress()
         .enterToAddressEdit()
         .changeAddress("address_new");
     (new CabinetAddressChangeFirstPage())
         .clickOnSaveButton()
         .enterBackToProfile()
         .enterToChangePhone()
         .enterToPhoneEdit()
         .changePhone("966856496");
     (new CabinetPhoneChangeFirstPage())
         .clickOnSaveButton()
         .enterBackToProfile()
         .enterHomePage()
         .enterToActivity()
         .getOperationsForPeriod("01/01/2015", "15/01/2015");
 }
Beispiel #2
0
        public void taskTest()
        {
            CustomMethods.webDriver.Navigate().GoToUrl("https://www.paypal.com/");
            PaypalStartPage  startPage  = new PaypalStartPage();
            PaypalSigninPage signInPage = startPage.loginToPaypal();

            //Next tab key sending is purposed to avoid silverlight pop-up browser built-in addon
            CustomMethods.webDriver.FindElements(By.CssSelector("*"))[0].SendKeys(Keys.Tab);
            signInPage.logInWithCredentials(email, password)
            .enterToMyCabinet()
            .enterToProfile()
            .enterToChangeAddress()
            .enterToAddressEdit()
            .changeAddress("address_new");
            (new CabinetAddressChangeFirstPage())
            .clickOnSaveButton()
            .enterBackToProfile()
            .enterToChangePhone()
            .enterToPhoneEdit()
            .changePhone("966856496");
            (new CabinetPhoneChangeFirstPage())
            .clickOnSaveButton()
            .enterBackToProfile()
            .enterHomePage()
            .enterToActivity()
            .getOperationsForPeriod("01/01/2015", "15/01/2015");
        }