Exemplo n.º 1
0
        internal void register()
        {
            //Populate the excel data
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "SignUp");
            //Click on Join button
            Join.Click();

            //Enter FirstName
            FirstName.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "FirstName"));

            //Enter LastName
            LastName.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "LastName"));

            //Enter Email
            Email.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Email"));

            //Enter Password
            Password.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Password"));

            //Enter Password again to confirm
            ConfirmPassword.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "ConfirmPswd"));

            //Click on Checkbox
            Checkbox.Click();

            //Click on join button to Sign Up
            JoinBtn.Click();
        }
Exemplo n.º 2
0
 public void Navigate()
 {
     //AcceptCookies.Click();
     CloseX.Click();
     SignUp.Click();
     Join.Click();
 }
Exemplo n.º 3
0
        internal void Register()
        {
            //extent Reports
            //Global.Base.test = Global.Base.extent.StartTest("Login Test");
            //Base.ExtentReports();

            //Click on Join button
            Join.Click();

            //Enter Firstname
            Firstname.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Firstname"));

            //Enter Lastname
            Lastname.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Lastname"));

            //Enter Email
            Email.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Email"));

            //Enter Password
            Password.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Password"));

            //Enter Password again to confirm
            ConfirmPassword.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "ConfirmPswd"));

            //Click on Checkbox
            Checkbox.Click();

            //Click on join button to Sign Up
            JoinBtn.Click();
        }
Exemplo n.º 4
0
        internal void register()
        {
            //Click on Join button
            Join.Click();
            Thread.Sleep(2000);

            //Enter FirstName
            FirstName.SendKeys(ExcelLibHelper.ReadData(2, "FirstName"));

            //Enter LastName
            LastName.SendKeys(ExcelLibHelper.ReadData(2, "LastName"));

            //Enter Email
            Email.SendKeys(ExcelLibHelper.ReadData(2, "Email"));

            //Enter Password
            Password.SendKeys(ExcelLibHelper.ReadData(2, "Password"));

            //Enter Password again to confirm
            ConfirmPassword.SendKeys(ExcelLibHelper.ReadData(2, "Confirm Password"));

            //Click on Checkbox
            Checkbox.Click();

            //Click on join button to Sign Up
            JoinBtn.Click();
        }
Exemplo n.º 5
0
        internal void register()
        {
            //Click on Join button
            Join.Click();

            //Enter FirstName
            FirstName.SendKeys(firstname);

            //Enter LastName
            LastName.SendKeys(lastname);

            //Enter Email
            Email.SendKeys(email);

            //Enter Password
            Password.SendKeys(password);

            //Enter Password again to confirm
            ConfirmPassword.SendKeys(confirmpassword);

            //Click on Checkbox
            Checkbox.Click();

            //Click on join button to Sign Up
            JoinBtn.Click();
        }
Exemplo n.º 6
0
        internal void Register()
        {
            //Click on Join button
            Join.Click();

            //Enter FirstName
            FirstName.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "FirstName"));

            //Enter LastName
            LastName.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "LastName"));

            //Enter Email
            Email.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Email"));

            //Enter Password
            Password.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Password"));

            //Enter Password again to confirm
            ConfirmPassword.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "ConfirmPswd"));

            //Click on Checkbox
            Checkbox.Click();

            //Click on join button to Sign Up
            JoinBtn.Click();
        }
Exemplo n.º 7
0
        internal void register()
        {
            //Populate the excel data
            GlobalDefinitions.ExcelLib.PopulateInCollection(MarsResources.ExcelPath, "SignUp");
            // Navigate to Url
            driver.Navigate().GoToUrl(GlobalDefinitions.ExcelLib.ReadData(2, "Url"));
            //Click on Join button
            Join.Click();
            Thread.Sleep(2000);

            //Enter FirstName
            FirstName.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "FirstName"));

            //Enter LastName
            LastName.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "LastName"));

            //Enter Email
            Email.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "EmailAddress"));

            //Enter Password
            Password.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Password"));

            //Enter Password again to confirm
            ConfirmPassword.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "ConfirmPassword"));

            //Click on Checkbox
            Checkbox.Click();

            //Click on join button to Sign Up
            JoinBtn.Click();
        }
        //this method registers new user into website
        public void Register()
        {
            ExcelLibrary.PopulateInCollection(Base.TestDataPath, "Registration");

            //click on Join button to register
            Join.Click();

            //enter first name
            txtFirstName.SendKeys(ExcelLibrary.ReadData(2, "FirstName"));

            //enter last name
            txtLastName.SendKeys(ExcelLibrary.ReadData(2, "LastName"));

            //enter email address
            txtEmailAddress.SendKeys(ExcelLibrary.ReadData(2, "Emailaddress"));

            //enter password
            txtPassword.SendKeys(ExcelLibrary.ReadData(2, "Password"));

            //enter confirm password
            txtConfirmPassword.SendKeys(ExcelLibrary.ReadData(2, "ConfirmPassword"));

            //keyword
            //check terms and conditions
            if (ExcelLibrary.ReadData(2, "I agree to Terms and Conditions") == "check")
            {
                checkboxTermsConditions.Click();
            }

            //click on join button to register
            if (ExcelLibrary.ReadData(2, "Join") == "join")
            {
                btnJoin.Click();
            }
        }
Exemplo n.º 9
0
        public void register()
        {
            //Populate the excel data
            ExcelLib.PopulateInCollection(Base.ExcelPath, "SignUp");
            GlobalDefinitions.NavigateUrl();
            //Click on Join button
            Join.Click();

            //Enter FirstName
            FirstName.SendKeys(ExcelLib.ReadData(2, "FirstName"));

            //Enter LastName
            LastName.SendKeys(ExcelLib.ReadData(2, "LastName"));

            //Enter Email
            Email.SendKeys(ExcelLib.ReadData(2, "Email"));

            //Enter Password
            Password.SendKeys(ExcelLib.ReadData(2, "Password"));

            //Enter Password again to confirm
            ConfirmPassword.SendKeys(ExcelLib.ReadData(2, "ConfirmPswd"));

            //Click on Checkbox
            Terms.Click();

            //Click on join button to Sign Up
            SubmitButton.Click();
        }
Exemplo n.º 10
0
        internal string register()
        {
            //Populate the excel data
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "SignUp");
            //Click on Join button
            Join.Click();

            //Enter FirstName
            FirstName.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "FirstName"));

            //Enter LastName
            LastName.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "LastName"));

            //Enter Email
            Email.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Email"));

            //Enter Password
            Password.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Password"));

            //Enter Password again to confirm
            ConfirmPassword.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "ConfirmPswd"));

            //Click on Checkbox
            Checkbox.Click();

            //Click on join button to Sign Up
            JoinBtn.Click();

            return(Global.GlobalDefinitions.driver.FindElement(By.XPath("//*[@id='account-profile-section']/div/div[1]/a")).Text);
        }
Exemplo n.º 11
0
        internal void Register()
        {
            // Populate the Excel Data
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "Registration");
            Thread.Sleep(500);

            // Click the Join button on the Home page
            Join.Click();

            // Input the First name field with valid characters
            Firstname.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Firstname"));

            // Input the Last name field with valid characters
            Lastname.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Lastname"));

            // Input the Email address field with valid characters
            Emailaddress.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Emailaddress"));

            // Input the Password field with valid characters
            Password.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Password"));

            // Input the Confirm Password field with valid characters
            ConfirmPassword.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "ConfirmPassword"));

            // Click the I agree to the terms and conditions checkbox
            Checkbox.Click();

            // Click the Join button on the Registration form page
            Joinbtn.Click();
        }
Exemplo n.º 12
0
        public void SignUpSteps()
        {
            CommonMethods.test = CommonMethods.extent.StartTest("Sign up steps test");

            //Populate the excel data
            ExcelLib.PopulateInCollection(ConstantUtils.TestDataPath, "SignUp");

            //Click on Join button
            Join.Click();

            // Wait
            CommonMethods.WaitForElement(Driver.driver, "Name", "firstName", 10);

            //Enter FirstName
            FirstName.SendKeys(ExcelLib.ReadData(2, "FirstName"));

            //Enter LastName
            LastName.SendKeys(ExcelLib.ReadData(2, "LastName"));

            //Enter Email
            Email.SendKeys(ExcelLib.ReadData(2, "Email"));

            //Enter Password
            Password.SendKeys(ExcelLib.ReadData(2, "Password"));

            //Enter Password again to confirm
            ConfirmPassword.SendKeys(ExcelLib.ReadData(2, "ConfirmPswd"));

            //Click on Checkbox
            Checkbox.Click();

            //Click on join button to Sign Up
            JoinBtn.Click();
        }
Exemplo n.º 13
0
        internal void register()
        {
            //Populate the excel data
            GlobalDefinitions.ExcelLib.PopulateInCollection(@"C:\Users\Neelam\Desktop\Mars project\MarsFramework-master\MarsFramework\ExcelData\TestDataShareSkill.xlsx", "SignUp");
            //Click on Join button
            Join.Click();

            //Enter FirstName
            FirstName.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "FirstName"));

            //Enter LastName
            LastName.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "LastName"));

            //Enter Email
            Email.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Email"));

            //Enter Password
            Password.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Password"));

            //Enter Password again to confirm
            ConfirmPassword.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "ConfirmPswd"));

            //Click on Checkbox
            Checkbox.Click();

            //Click on join button to Sign Up
            JoinBtn.Click();
        }
Exemplo n.º 14
0
        //Function to register new user
        public void Register()
        {
            ExcelLibHelpers.PopulateInCollection(ServiceData.ExcelPath, "SignUp");

            //Click Join to sign up for the skill exchange Portal
            Join.Click();

            //Enter the data for First name
            FirstName.SendKeys(ExcelLibHelpers.ReadData(2, "FirstName"));

            //Enter the data for Last name
            LastName.SendKeys(ExcelLibHelpers.ReadData(2, "LastName"));

            //Enter the data for EmailID
            Email.SendKeys(ExcelLibHelpers.ReadData(2, "EmailID"));

            //Enter the data for Password
            Password.SendKeys(ExcelLibHelpers.ReadData(2, "Password"));

            //Enter the data for Confirm Password
            CnfrmPswrd.SendKeys(ExcelLibHelpers.ReadData(2, "ConfirmPassword"));

            //Check on the terms and conditions check box prior to clicking the Join button
            TermsCndtnsChkbox.Click();

            //Click on the Join button to complete the registration
            JoinButton.Click();

            //Implicit wait for the registeration pop up to be available
            Wait.wait(2, driver);

            try
            {
                if (FirstTime)
                {
                    if (PopUp.Text == "Registration Successfull")
                    {
                        TestContext.WriteLine(PopUp.Text);
                    }
                }
                else
                {
                    String EmailValidationMsg = EmailValidation.Text;
                    if (EmailValidationMsg == "This email has already been used to register an account.")
                    {
                        TestContext.WriteLine("The account has already been created with this emailID, Please log in using exisitng account details");
                    }
                }
            }
            catch (Exception e)
            {
                Assert.Fail("Registration failed due to 1 or more errors. Make sure that there isn't an existing account", e.Message);
            }
        }
Exemplo n.º 15
0
        public void StartRegister()
        {
            //Populate the excel data
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "SignUp");

            //Navigate to the Url
            string url = Global.GlobalDefinitions.ExcelLib.ReadData(2, "Url");

            Console.WriteLine(url);
            Global.GlobalDefinitions.driver.Navigate().GoToUrl(url);

            //Click on Join
            Join.Click();
        }
Exemplo n.º 16
0
        internal void register()
        {
            //Populate the excel data
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "SignUp");

            //string pth = System.Reflection.Assembly.GetCallingAssembly().CodeBase;
            //string actualPath = pth.Substring(0, pth.LastIndexOf("bin"));
            //string projectPath = new Uri(actualPath).LocalPath;

            //string ExclPath = projectPath + "ExcelData\\TestDataManageListings.xlsx";

            //GlobalDefinitions.ExcelLib.PopulateInCollection(ExclPath, "SignUp");


            GlobalDefinitions.driver.Navigate().GoToUrl(GlobalDefinitions.ExcelLib.ReadData(2, "Url"));

            //Click on Join button
            Join.Click();

            //Enter FirstName
            FirstName.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "FirstName"));

            //Enter LastName
            LastName.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "LastName"));

            //Enter Email
            Email.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Email"));

            //Enter Password
            Password.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Password"));

            //Enter Password again to confirm
            ConfirmPassword.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "ConfirmPswd"));

            //Click on Checkbox
            Checkbox.Click();

            //Click on join button to Sign Up
            JoinBtn.Click();
        }
Exemplo n.º 17
0
 public void Login()
 {
     SignUp.Click();
     Join.Click();
 }