Beispiel #1
0
        /*
         * Method, Validate the create Succesfull a new Account
         */
        public void Create_Successfull_Account()
        {
            Create_Account_Button.Click(); //Press Create a new Account button

            Utils.VisibleElement("Validates the Email Field is visible", Email);
            Utils.VisibleElement("Validates the Password Field is visible", Password);

            Email.SendKeys(VALUE_EMAIL3);                                      //Enter text, Valid Email
            Utils.Enable("Validates the Next Button is Disable", Next_Button); //Validates, the Next Button is disable

            Password.SendKeys(VALUE_PASS);                                     //Enter text Password
            Utils.Enable("Validates the Next Button is Enable", Next_Button);  //Validates, the Next Button is Enable

            Next_Button.Click();
            WebDriverWait wait2 = new WebDriverWait(_driver, TimeSpan.FromSeconds(30)); //Wait Until the Text "Whats your name" is visible

            wait2.Until(ExpectedConditions.ElementIsVisible(By.Id("text_sign_up_name_title")));

            Utils.Asserts("Validates, the frame'Whats your name' is visible", EXPECT_FRAME_NAME, Utils.Get_Attribute(Name_Title_Field, "text")); //Validate the title is visible//

            Name_Field.SendKeys(VALUE_NAME);                                                                                                     //Enter text Fisrt and last Name
            Next_Button.Click();                                                                                                                 //Press Nex button

            wait2.Until(ExpectedConditions.ElementIsVisible(By.Id("etZipCode")));
            Utils.SendKeys_Keyboard("5434");
            Button_Loading.Click(); //Press button loading
            wait2.Until(ExpectedConditions.ElementIsVisible(By.XPath("//*[@text='PERMITIR' or @text='ALLOW']")));
            Permission_Allow.Click();


            wait2.Until(ExpectedConditions.ElementIsVisible(By.Id("text_sign_up_work_experience_category_position_title"))); //Wait Until the Text "Please Select the category Job" is visible
            Utils.Asserts("Validates, the Category job title is correct", EXPECT_CATEGORY_TEXT, Utils.Get_Attribute(Select_Job_Title, "text"));

            Text_Skip.Click(); //Press "No work experience button"
            wait2.Until(ExpectedConditions.ElementIsVisible(By.Id("text_sign_up_complete_profile_title")));
            Utils.Asserts("Validates, the Profile Picture title is correct", EXPECT_PROFILE_PICTURE, Utils.Get_Attribute(Profile_Picture_Title, "text"));
            Text_Skip.Click();

            wait2.Until(ExpectedConditions.ElementIsVisible(By.Id("text_sign_up_candidate_congratulation_title"))); //Wait Until the Text "Please complete your profile" is visible
            Utils.Asserts("Validates, the Congrulation Picture title is correct", EXPECT_COMPLETE_PROFILE, Utils.Get_Attribute(Congrulation_Title, "text"));
            Utils.Asserts("Validates, the Candidate Name is correct", EXPECT_CANDIDATE_NAME, Utils.Get_Attribute(Candidate_Name, "text"));

            Edit_Profile.Click();                                                                        //Press Edit Profile Button
            wait2.Until(ExpectedConditions.ElementIsVisible(By.XPath("//*[@text='Personal Profile']"))); //Wait Until the Page "Personal profile" is visible
            Number_Field.Click();
            Number_Field.SendKeys(VALUE_NUMBER);
            Next_Button.Click();
            Utils.Asserts("Validates, the Search text", EXPECT_SEARCH_TEXT, Utils.Get_Attribute(Personal_Profile_Title, "text"));
        }
Beispiel #2
0
        /*
         * Method, validates login Sucessfull with validate user
         */

        public void Login_User()
        {
            WebDriverWait wait2 = new WebDriverWait(_driver, TimeSpan.FromSeconds(30));

            wait2.Until(ExpectedConditions.ElementIsVisible(By.Id("button_login")));
            Login.Click();                                                               //Click, Login button

            wait2.Until(ExpectedConditions.ElementIsVisible(By.Id("text_login_title"))); //Wait Until the Text "Welcome back" is visible
            Utils.Asserts("Validates the Welcome Back title", EXPECT_WELCOME_BACK_TITLE, Utils.Get_Attribute(Welcome_back_Title, "text"));
            Email.SendKeys(VALUE_EMAIL3);                                                //Enter text, Valid Email
            Password.SendKeys(VALUE_PASS);                                               //Enter text Password
            Next_Button.Click();
            wait2.Until(ExpectedConditions.ElementIsVisible(By.Id("_button_got_it")));
            GotIt_Button.Click();

            wait2.Until(ExpectedConditions.ElementIsVisible(By.Id("_tv_search")));                                         //Wait Until the Text "Find Jobs" is visible
            Utils.Asserts("Validates the Find Jobs Page", EXPECT_FIND_JOBS_TITLE, Utils.Get_Attribute(Find_Jobs, "text")); //Get and validate "Find Jobs" title.

            Icon_Profile.Click();
            Utils.Asserts("Validates the Text Name correct", VALUE_NAME, Utils.Get_Attribute(Text_Name, "text")); //Get and validate text name.
        }
Beispiel #3
0
        public void Create_Existing_Account()
        {
            Utils.VisibleElement("Validates the Email Field is visible", Email);
            Utils.VisibleElement("Validates the Password Field is visible", Password);

            Email.Clear();
            Email.SendKeys(VALUE_EMAIL);                                       //Enter text, Valid Email
            Utils.Enable("Validates the Next Button is Disable", Next_Button); //Validates, the Next Button is disable

            Password.Clear();
            Password.SendKeys(VALUE_PASS);                                    //Enter text Password
            Utils.Enable("Validates the Next Button is Enable", Next_Button); //Validates, the Next Button is Enable

            Next_Button.Click();                                              //Press Nex button
            WebDriverWait wait2 = new WebDriverWait(_driver, TimeSpan.FromSeconds(30));

            wait2.Until(ExpectedConditions.ElementIsVisible(By.Id("snackbar_text"))); //Wait Until the Text "It looks like you’ve already registered" is visible

            Utils.VisibleElement("Validates the Error message is visible", Error_Account);
            Utils.Asserts("Validate the Text Error message is correct", EXPECT_CREATE_COUNT, Utils.Get_Attribute(Error_Account, "text")); //Get and validate the text in to Error message

            Back_Button.Click();                                                                                                          //Press back Button, to return to the beginning
        }
 public void NextVideo()
 {
     Next_Button.click();
 }
Beispiel #5
0
 public void Click_Next_Button()
 {
     Next_Button.Click();
 }