Ejemplo n.º 1
0
        public App()
        {
            InitializeComponent();

            MainPage = new SignupPage();
            //MainPage = new MainPage();
        }
Ejemplo n.º 2
0
        public void WhenIShouldEnterTheAnd(string p0, string p1, Table table)
        {
            SignupPage signup = new SignupPage(driver);
            dynamic    values = table.CreateDynamicInstance();

            signup.AccountLogin(values.p0, values.p1);
        }
        public CreateAccountSteps()

        {
            _baseURL = ScenarioContext.Current.Get <string>("baseURL");

            _homePage   = new HomePage(_baseURL);
            _signupPage = new SignupPage();
        }
Ejemplo n.º 4
0
        public void SuccessfulSignUp()
        {
            SignupPage signupPage = new SignupPage(Driver);

            ReceiptPage receiptPage = signupPage.SingupAs("primer", "nombre", "calle 123", "789");

            //Assert where the expected result is that the user can singup successfuly
            Assert.IsTrue(receiptPage.SignupHeaderIsPresent());
        }
Ejemplo n.º 5
0
        public async void registerAsync()
        {
            bool registered = await signUpService.registerUserAsync(EncryptPassword());

            if (registered)
            {
                SignupPage.registerSuccessfull();
            }
        }
Ejemplo n.º 6
0
        public void BeforeEachTest()
        {
            _app        = AppInitializer.StartApp(platform);
            _signupPage = new SignupPage(_app);
            _homePage   = new ConsultantHomePage(_app);
            _loginPage  = new LoginPage(_app);

            NavigateToHomePage();
        }
Ejemplo n.º 7
0
        public void GivenTheNewUserInTheHomePage()
        {
            _driver           = ScenarioContext.Current.Get <IWebDriver>("currentDriver");
            HomePageObject    = new HomePage(_driver);
            LoginPageObject   = new LoginPage(_driver);
            SignupPageObeject = new SignupPage(_driver);


            HomePageObject.OpenLoginPage();
        }
Ejemplo n.º 8
0
        public void VerifySignup()
        {
            try
            {
                using (IWebDriver driver = new ChromeDriver())
                {
                    SignupPage signupPage = new SignupPage(driver);
                    signupPage.NavigateTo();

                    signupPage.GotoSignup();
                    signupPage.EnterFirstName("Test");
                    signupPage.EnterLastName("User");
                    signupPage.EnterStreet("1");
                    signupPage.EnterCity("Islamabad");
                    signupPage.EnterState("Federal");
                    signupPage.EnterZipCode("44000");
                    signupPage.EnterPhoneNumber("0333-1234567");
                    signupPage.EnterSSN("12345678");

                    signupPage.EnterUserName(UserName);
                    signupPage.EnterPassword(Password);
                    signupPage.EnterConfirmPassword(Password);

                    signupPage.ClickSignup();

                    string      verifyPath = "//*[@id='rightPanel']/p";
                    IWebElement successTxt = driver.FindElement(By.XPath(verifyPath));

                    Assert.AreEqual("Your account was created successfully. You are now logged in.", successTxt.Text);
                }
            }
            catch (Exception exp)
            {
                Console.WriteLine(exp.ToString());
                Console.ReadLine();
            }
        }
Ejemplo n.º 9
0
 public void ThenIHaveToClickOnLoginButton()
 {
     SignupPage signup = new SignupPage(driver);
     // PropertyCollection.CurrentPage =
     // signup.clicklogin();
 }
Ejemplo n.º 10
0
        public void WhenIShouldPressBuynowOptionInTheListOfBooks()
        {
            SignupPage signupPage = new SignupPage(driver);

            signupPage.buyclick();
        }
Ejemplo n.º 11
0
 public void Setup()
 {
     loginPage  = new LoginPage();
     myViewPage = new MyViewPage();
     signupPage = new SignupPage();
 }
Ejemplo n.º 12
0
 public void BeforeEachTest()
 {
     _app        = AppInitializer.StartApp(platform);
     _signupPage = new SignupPage(_app);
 }
Ejemplo n.º 13
0
        public void Register()
        {
            var signupPage = new SignupPage();

            signupPage.RegisterNewUser();
        }
Ejemplo n.º 14
0
 public void ThenItResultShouldBeBooksListOnHomepage()
 {
     SignupPage signupPage = new SignupPage(driver);
 }
Ejemplo n.º 15
0
 public SignupSteps()
 {
     signup = new SignupPage();
 }
Ejemplo n.º 16
0
        public void WhenIShouldEnterATextToSearchList()
        {
            SignupPage signupPage = new SignupPage(driver);

            signupPage.Searchtext();
        }
Ejemplo n.º 17
0
        public void WhenIClickOnTheSearchButtonInHomepage()
        {
            SignupPage signupPage = new SignupPage(driver);

            signupPage.ClickSearch();
        }
Ejemplo n.º 18
0
        public void ThenIShouldSeeTheHomePage()
        {
            SignupPage signup = new SignupPage(driver);

            signup.LoginClick();
        }
Ejemplo n.º 19
0
        public void WhenIShouldPressOnSearchArea()
        {
            SignupPage signup = new SignupPage(driver);

            signup.Searchbox();
        }
Ejemplo n.º 20
0
 public void WhenINavigateOnLoginPage()
 {
     SignupPage.ClickOnLoginButton();
     Assert.IsTrue(FindElement(By.ClassName("page-title")).Displayed);
 }
Ejemplo n.º 21
0
        public void WhenIClickPlaceorderButtonForPlaceAnOrder()
        {
            SignupPage signupPage = new SignupPage(driver);

            signupPage.placeorder();
        }
Ejemplo n.º 22
0
        public void WhenIClickOnTheCreataccountButton()
        {
            SignupPage signupPage = new SignupPage(driver);

            signupPage.SignupClick();
        }
Ejemplo n.º 23
0
        public void GivenIHaveFillTheDetailsAnd(string Email, string Password, string ConfirmPassword)
        {
            SignupPage signupPage = new SignupPage(driver);

            signupPage.Signup(Email, Password, ConfirmPassword);
        }
Ejemplo n.º 24
0
        public void WhenIClickOnTheLogoutButton()
        {
            SignupPage signupPage = new SignupPage(driver);

            signupPage.logout();
        }