public static void Main(String[] args)
        {
            driver = new FirefoxDriver();
            hpo    = new HomePageObject(driver);
            rpo    = new RegistePageObject(driver);

            driver.Url = "http://newtours.demoaut.com/mercurywelcome.php";

            hpo.register_Click("REGISTER");

            register_User();
        }
Example #2
0
        public void setupTest()
        {
            driver = new FirefoxDriver();
            hpo    = new HomePageObject(driver);
            rpo    = new RegistePageObject(driver);

            driver.Url = "http://newtours.demoaut.com/mercurywelcome.php";

            String ExpectedTitle = "Welcome: Mercury Tours";
            String ActualTitle   = driver.Title;

            Assert.AreEqual(ExpectedTitle, ActualTitle);

            hpo.register_Click("REGISTER");

            register_User();
        }