コード例 #1
0
        public static HomePage NavigateTo(IWebDriver driver)
        {
            var yourAccountPageInstance = YourAccountPage.NavigateTo(driver);

            yourAccountPageInstance.HomeButton.Click();

            var homePageInstance = PageFactoryExtensions.InitPage <HomePage>(driver);

            return(homePageInstance);
        }
コード例 #2
0
        }                                          //input[name="submit"]//#post-31 > div > div > form > table:nth-child(3) > tbody > tr > td > input[type="submit"]:nth-child(2)

        public static ContactDetailsPage NavigateTo(IWebDriver driver)
        {
            var yourAccountPageInstance = YourAccountPage.NavigateTo(driver);

            yourAccountPageInstance.YourDetails.Click();


            var contactDetailsPageInstance = PageFactoryExtensions.InitPage <ContactDetailsPage>(driver);

            return(contactDetailsPageInstance);
        }