static void Main(string[] args)
        {
            FirefoxDriver driver0 = new FirefoxDriver();
            SeleniumLogEventListener driver = new SeleniumLogEventListener(driver0);
            SeleniumLog log = SeleniumLog.Instance(driver);

            TestClass tobj = new TestClass();

            log.WriteLine("Main");
            Foo();
            tobj.Message("hi there");
        }
        public void Run2()
        {
            
            FirefoxDriver driver0 = new FirefoxDriver();
            SeleniumLogEventListener driver = new SeleniumLogEventListener(driver0);
            //SeleniumEventListener driver = SeleniumLogEventListener(driver0);
            SeleniumHomePage Home = new SeleniumHomePage(driver);
            SeleniumDocumentationPage Doc = new SeleniumDocumentationPage(driver);
            SeleniumLog log = SeleniumLog.Instance(driver);

            log.WriteLine("Step 0: Display message");
            log.Indent();
            Home.Greeting1("Hi there");
            log.Unindent();

            log.WriteLine("Step 0.5: Display message");
            log.Indent();
            Doc.Greeting2("Hi there 2");
            log.Unindent();
            
            log.WriteLine("Step 1: Go to SeleniumHQ home page");
            driver.Navigate().GoToUrl("http://seleniumhq.org/");

            log.WriteLine("Step 2: Click on Documentation tab");
            Home.DocumentationTab.Click();

            log.WriteLine("Step 3: Click on Introduction link");
            Doc.Introduction.Click();

            log.WriteLine("Step 4: Click on Selenium Tool Suite link");
            Doc.SeleniumToolSuite.Click();

            log.WriteLine("Step 5: Click on Supported Browsers and Platforms link");
            Doc.SupportedBrowsersAndPlatforms.Click();

            log.WriteLine("complete.");
        }
 public TestCase() {
     ChromeDriver driver0 = new ChromeDriver();
     driver = new SeleniumLogEventListener(driver0);
     Home = new HomePage(driver);
     Contact = new ContactUsPage(driver);
     SeleniumLog log = SeleniumLog.Instance(driver);  //Only need to pass in driver once as it is a Singleton object
 }