コード例 #1
0
        public void verifyMyAccount()
        {
            //Initializing the objects
            LoginHelper loginHelper = new LoginHelper(GetWebDriver());
            ContactUsHelper contactUsHelper = new ContactUsHelper(GetWebDriver());

            //Login with blank username and password
             //   Login("", "");
              //  Console.WriteLine("Logged in as: " + "" + " / " + "");

            //Verify Page title
            VerifyTitle("Login");

            //Click on Contact Us
            contactUsHelper.ClickElement("VerifyAccountLink");

            //Enter Email
            contactUsHelper.TypeText("UserVerificationEmail", "*****@*****.**");

            //Click on Send Email btn
            contactUsHelper.ClickElement("EmailVerifyBtn");
            contactUsHelper.WaitForWorkAround(3000);

                contactUsHelper.AcceptAlert();

            //Capture screenshot fot the screen
            TakeScreenshot("ForgetPassword");
        }
コード例 #2
0
ファイル: ContactUs.cs プロジェクト: Chandu14488/Peg_Admin
        public void contactUs()
        {
            //Initializing the objects
            LoginHelper loginHelper = new LoginHelper(GetWebDriver());
            ContactUsHelper contactUsHelper = new ContactUsHelper(GetWebDriver());

            //Verify Page title
            VerifyTitle("Login");

            //Click on Contact Us
            contactUsHelper.ClickElement("ContactUsLink");

            //Enter Name
            contactUsHelper.TypeText("EnterName","Test");

            //Enter Email
            contactUsHelper.TypeText("EnterEmail", "*****@*****.**");

            //Enter Subject
            contactUsHelper.TypeText("EnterSubject", "Test Subject");

            //Enter Message
            contactUsHelper.TypeText("EnterMessage", "This is Test Message");

            //Click on Send
            contactUsHelper.ClickElement("Send");
            contactUsHelper.WaitForWorkAround(3000);

            //Capture screenshot fot the screen
            //            TakeScreenshot("ContactUs");
        }