public override void _Ready() { HandleWindow(); _lessonController = new LessonController(this); _navigationSteps = GetNode <NavigationSteps>("NavigationSteps"); ChangePageTo(PageCategory.LandingPage); }
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); }
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); }
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); }
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); }
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?"); }
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"); }
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."); }
protected virtual void TestSetup() { NLogManager.LogMessage.Info("Test setup was started"); navigation = new NavigationSteps(); NLogManager.LogMessage.Info("Test fixture setup was finished"); }
public void fillCustomerData() { SingInPage logedPage = NavigationSteps.NavigateToSingIn(); logedPage.FillExistedCustomerForm(SingInPage.Options.ByText, "*****@*****.**", "C0ntrol!"); }
public void TestSetup() { OpenBrowser(); navigationSteps = new NavigationSteps(); }