コード例 #1
0
        public void SignupElementsVerification()
        {
            HomeObjects objHome = new HomeObjects();

            objHome.HomePage_Elements_Verification(_driver);

            Report.AddToHtmlReport("STEP 2: Click on 'My Account' link on PHPTravels Home page.", false, true);

            new Common(_driver).FindElement(By.XPath(ElementLocators.Header_ddl_MyAccount)).Click();
            new Common(_driver).pause(2000);


            new Common(_driver).FindElement(By.XPath(ElementLocators.MyAccount_lnk_SignUp), "'SignUp' link under My Account Dropdown on PHPTravels Home page.").Click();
            Report.AddToHtmlReport("STEP 3: Click on 'SignUp' link on PHPTravels Home page.", false, true);
            new Common(_driver).pause(3000);

            new Common(_driver).FindElement(By.XPath(ElementLocators.SignUp_Header_SignUp), "'SignUp' header text verification on PHPTravels SignUp page.");
            new Common(_driver).FindElement(By.XPath(ElementLocators.SignUp_txt_FirstName), "'First Name' textbox on PHPTravels SignUp page.");
            new Common(_driver).FindElement(By.XPath(ElementLocators.SignUp_txt_LastName), "'Last Name' textbox on PHPTravels SignUp page.");
            new Common(_driver).FindElement(By.XPath(ElementLocators.SignUp_txt_Phone), "'Phone' textbox on PHPTravels SignUp page.");
            new Common(_driver).FindElement(By.XPath(ElementLocators.SignUp_txt_Email), "'Email' textbox on PHPTravels SignUp page.");
            new Common(_driver).FindElement(By.XPath(ElementLocators.SignUp_txt_Password), "'Password' textbox on PHPTravels SignUp page.");
            new Common(_driver).FindElement(By.XPath(ElementLocators.SignUp_txt_CPassword), "'Confirm Password' textbox on PHPTravels SignUp page.");
            new Common(_driver).FindElement(By.XPath(ElementLocators.SignUp_btn_SignUp), "'SignUp' button on PHPTravels SignUp page.");
        }
コード例 #2
0
        public void LoginElementsVerification()
        {
            HomeObjects objHome = new HomeObjects();

            objHome.HomePage_Elements_Verification(_driver);

            Report.AddToHtmlReport("STEP 2: Click on 'My Account' link on PHPTravels Home page.", false, true);

            new Common(_driver).FindElement(By.XPath(ElementLocators.Header_ddl_MyAccount)).Click();
            new Common(_driver).pause(2000);

            new Common(_driver).FindElement(By.XPath(ElementLocators.MyAccount_lnk_Login), "'Login' link in My Account Dropdown on PHPTravels Home page.").Click();

            Report.AddToHtmlReport("STEP 3: Click on 'Login' link in My Account Dropdown on PHPTravels Home page.", false, true);

            new Common(_driver).pause(3000);

            new Common(_driver).FindElement(By.XPath(ElementLocators.Login_txt_Email), "'Email' textbox on PHPTravels Login page.");
            new Common(_driver).FindElement(By.XPath(ElementLocators.Login_txt_Password), "'Password' textbox on PHPTravels Login page.");
            new Common(_driver).FindElement(By.XPath(ElementLocators.Login_btn_Login), "'Login' button on PHPTravels Login page.");
        }