Exemplo n.º 1
0
 public override void _Ready()
 {
     HandleWindow();
     _lessonController = new LessonController(this);
     _navigationSteps  = GetNode <NavigationSteps>("NavigationSteps");
     ChangePageTo(PageCategory.LandingPage);
 }
Exemplo n.º 2
0
        public void FacebookLogonViaNotificationsMenu()
        {
            App = new UnitTestApp();
            var authenticationSteps = new AuthenticationSteps(ScenarioContext.Current);

            authenticationSteps.GivenIAmNotAuthenticated();

            var navigationSteps = new NavigationSteps(ScenarioContext.Current);

            navigationSteps.ThenIAmRedirectedToThePage("WikiPage");

            var homePageSteps = new HomePageSteps(ScenarioContext.Current);

            homePageSteps.GivenTheMenuDetailIsClosed();
            homePageSteps.WhenITapTheHanburgerIcon();
            homePageSteps.ThenIShouldSeeTheMenuDetailIsOpened();

            var notificationsPageSteps = new NotificationsPageSteps(ScenarioContext.Current);

            notificationsPageSteps.WhenITapTheNotificationsFromTheMenuDetail();
            navigationSteps.ThenIAmRedirectedToThePage("LogonPage");

            var loginSteps = new LogonPageSteps(ScenarioContext.Current);

            loginSteps.WhenITapTheLoginWithFacebookButtonWithMobileAccount(LOGONUSERMOBILE);
        }
Exemplo n.º 3
0
        public void FacebookLogonViaWriteYourToughtsMenu()
        {
            var authenticationSteps = new AuthenticationSteps(ScenarioContext.Current);

            authenticationSteps.GivenIAmNotAuthenticated();

            var navigationSteps = new NavigationSteps(ScenarioContext.Current);

            navigationSteps.ThenIAmRedirectedToThePage("WikiPage");

            var homePageSteps = new HomePageSteps(ScenarioContext.Current);

            homePageSteps.GivenTheMenuDetailIsClosed();
            homePageSteps.WhenITapTheHanburgerIcon();
            homePageSteps.ThenIShouldSeeTheMenuDetailIsOpened();

            var postFeedPageSteps = new PostFeedPageSteps(ScenarioContext.Current);

            postFeedPageSteps.WhenITapTheWriteDownIconFromTheMenuDetail();
            navigationSteps.ThenIAmRedirectedToThePage("LogonPage");

            var loginSteps = new LogonPageSteps(ScenarioContext.Current);

            loginSteps.WhenITapTheLoginWithFacebookButtonWithMobileAccount(LOGONUSERMOBILE);
        }
Exemplo n.º 4
0
        public void FacebookLogonViaCrisisMenu()
        {
            var authenticationSteps = new AuthenticationSteps(ScenarioContext.Current);

            authenticationSteps.GivenIAmNotAuthenticated();

            var navigationSteps = new NavigationSteps(ScenarioContext.Current);

            navigationSteps.ThenIAmRedirectedToThePage("WikiPage");

            var homePageSteps = new HomePageSteps(ScenarioContext.Current);

            homePageSteps.GivenTheMenuDetailIsClosed();
            homePageSteps.WhenITapTheHanburgerIcon();
            homePageSteps.ThenIShouldSeeTheMenuDetailIsOpened();

            var crisisPageSteps = new CrisisHotlineListPageSteps(ScenarioContext.Current);

            crisisPageSteps.WhenITapTheCrisisIconFromTheMenuDetail();
            navigationSteps.ThenIAmRedirectedToThePage("LogonPage");

            var loginSteps = new LogonPageSteps(ScenarioContext.Current);

            loginSteps.WhenITapTheLoginWithFacebookButtonWithAccount(LOGONUSEREMAIL);
        }
Exemplo n.º 5
0
 public void TestSetup()
 {
     webDriver = new ChromeDriver(@"C:\selenumWebDriver");
     webDriver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30);
     webDriver.Manage().Timeouts().PageLoad     = TimeSpan.FromSeconds(300);
     webDriver.Navigate().GoToUrl("http://automationpractice.com/index.php");
     navigationSteps = new NavigationSteps(webDriver);
 }
Exemplo n.º 6
0
        public void setUp()
        {
            webDriver = new ChromeDriver(@"C:\SeleniumWebDrivers");

            //waiter implisito
            webDriver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30);
            //waiter page
            webDriver.Manage().Timeouts().PageLoad = TimeSpan.FromSeconds(120);

            navigationSteps = new NavigationSteps(webDriver);
            webDriver.Navigate().GoToUrl("http://automationpractice.com/index.php?");
        }
Exemplo n.º 7
0
 public void Setup()
 {
     /*ChromeOptions options = new ChromeOptions();
      * options.AddArgument("--start-maximized");       //pantalla maximizada
      * options.AddArgument("--incognito");
      * options.AddArgument("--headless");      //no visualiza la pagina, realiza el proceso por debajo
      *
      * webDriver = new ChromeDriver(@"C:\Users\ASUS\seleniumWebDriver",options);      //options es para que pueda iniciar de modo incognito o no
      *
      * //implicid waiters
      * webDriver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30); //tiempo de espera antes de que un control nos de la excepcion de que no encontro el control
      * webDriver.Manage().Timeouts().PageLoad = TimeSpan.FromSeconds(120); //tiempo de espera antes de que no encuentre la pagina
      */
     navigationSteps = new NavigationSteps();
     //webDriver.Navigate().GoToUrl("http://automationpractice.com/index.php");
 }
Exemplo n.º 8
0
        public void SignInWithSpecialPassword(string email, string password)
        {
            var nav = new NavigationSteps();
            var button = new ButtonSteps();
            var text = new TextFieldSteps();
            var link = new LinkSteps();

            nav.GoToPage(HomePage.TitleText);
            nav.GoToPage(SignOutPage.TitleText);
            SignInEvents.ClearSigningEmailAddress();
            nav.GoToPage(SignOnPage.TitleText);
            nav.SeePage(SignOnPage.TitleText);
            text.TypeIntoTextField(email, SignOnPage.EmailAddressLabel);
            button.ClickLabeledSubmitButton(SignOnPage.SubmitButtonLabel);
            nav.SeePage(SignInPage.TitleText);
            text.TypeIntoTextField(password, SignInPage.PasswordLabel);
            button.ClickLabeledSubmitButton(SignInPage.SubmitButtonLabel);
            nav.SeePage(MyHomePage.TitleText);
            link.SeeLinkWithText("Sign Out");
        }
Exemplo n.º 9
0
        public void SignInWithSpecialPassword(string email, string password)
        {
            var nav    = new NavigationSteps();
            var button = new ButtonSteps();
            var text   = new TextFieldSteps();
            var link   = new LinkSteps();

            nav.GoToPage(HomePage.TitleText);
            nav.GoToPage(SignOutPage.TitleText);
            SignInEvents.ClearSigningEmailAddress();
            nav.GoToPage(SignOnPage.TitleText);
            nav.SeePage(SignOnPage.TitleText);
            text.TypeIntoTextField(email, SignOnPage.EmailAddressLabel);
            button.ClickLabeledSubmitButton(SignOnPage.SubmitButtonLabel);
            nav.SeePage(SignInPage.TitleText);
            text.TypeIntoTextField(password, SignInPage.PasswordLabel);
            button.ClickLabeledSubmitButton(SignInPage.SubmitButtonLabel);
            nav.SeePage(MyHomePage.TitleText);
            link.SeeLinkWithText("Sign Out");
        }
        public void PurchaseProductE2ETest()
        {
            var confirmationPage = NavigationSteps.OpenHomePage()
                                   .Header.NavMenu.OpenCategoryPopUp(Categories.Phones)
                                   .NavigateToSubCategoryPage(SubCategories.Phones)
                                   .OpenProductDetailsPage(6042347)
                                   .AddToCart()
                                   .Header.OpenCartPage()
                                   .UpdateProductQty(3)
                                   .CheckoutWithPromoCode()
                                   .FillIn()
                                   .SaveAndContinue()
                                   .SelectSameAsShippingAddress()
                                   .SaveAndContinue()
                                   .FillIn()
                                   .PlaceOrder();

            Assert.IsTrue(confirmationPage.IsConfirmationDisplayed, "Confirmation text isn't displayed.");
            Assert.AreEqual(confirmationPage.ConfirmationText, "THANK YOU FOR YOUR ORDER.", "Confirmation text is not equal to \"Thank You For Your Order.\".");
            Assert.IsTrue(confirmationPage.IsOrderDetailsDisplayed, "Order details aren't displayed.");
            Assert.IsTrue(Browser.Url.Contains(confirmationPage.OrderNumber), "There is mismatch in Order Number, that is present in Confirmation Message." +
                          "It should be equal to the Order Number from the Browser's address line.");
            Assert.AreEqual(confirmationPage.EmailFromOrderDetails, "*****@*****.**", "Confirmation Message should contain email from Order Details.");
        }
Exemplo n.º 11
0
 protected virtual void TestSetup()
 {
     NLogManager.LogMessage.Info("Test setup was started");
     navigation = new NavigationSteps();
     NLogManager.LogMessage.Info("Test fixture setup was finished");
 }
Exemplo n.º 12
0
        public void fillCustomerData()
        {
            SingInPage logedPage = NavigationSteps.NavigateToSingIn();

            logedPage.FillExistedCustomerForm(SingInPage.Options.ByText, "*****@*****.**", "C0ntrol!");
        }
Exemplo n.º 13
0
 public void TestSetup()
 {
     OpenBrowser();
     navigationSteps = new NavigationSteps();
 }