protected Page(TestContextExtension extesion)
        {
            Extension = extesion;
            int tryFrequency = 0;
            bool exceptionCaught;
            do
            {
                exceptionCaught = false;

                try
                {
                    this.WaitForPageReady();
                    this.InitPage();
                }
                catch (Exception e)
                {
                    if (tryFrequency > frequency)
                    {
                        Trace.WriteLine(e.StackTrace);
                        Assert.Fail(e.Message);
                    }

                    exceptionCaught = true;
                    tryFrequency++;
                }
            } while (exceptionCaught);
        }
        public void TestMethod3()
        {
            var extension = new Framework.TestContextExtension { Driver = new FirefoxDriver() };
            try
            {
                extension.Driver.Navigate().GoToUrl("http://accounts-dev.autodesk.com");

                new PageOps(extension).Signin("DeleteUserLoEKKsJtCbWjKs", "Password1");
                extension.Driver.WaitForElement(new[] { "view_profile_container" });

                extension.Driver.FindElement("linked accounts", 100).Click();
                extension.Driver.WaitForElement(new[] { "linked_accounts_container" });
            }
            finally
            {
                extension.Driver.Close();
            }
        }
        public void TestMethod1()
        {
            var extension = new Framework.TestContextExtension {Driver = new FirefoxDriver()};
            try
            {
                //extension = extension;
                //extension.Driver.Navigate().GoToUrl("http://accounts-dev.autodesk.com");
                extension.Driver.Navigate().GoToUrl("http://accounts-dev.autodesk.com");

                new PageOps(extension).Signin("testme", "Password1");

                extension.Driver.WaitForElement(new[] { "VerificationCode" });
                extension.Driver.FindElement("another method", 100).Click();
                extension.Driver.WaitForElement(new[] { "btnSubmit" });
            }
            finally
            {
                extension.Driver.Close();
            }
        }
 public static Pages Create(TestContextExtension extension)
 {
     return new Pages(extension);
 }
 public Pages(TestContextExtension extesion)
     : base(extesion)
 {
 }
 public PageOps(TestContextExtension extension)
 {
     _page = Pages.Create(extension);
 }