public void WhenIEnterMyPost() { //var chrome = ScenarioContext.Current["browser"] as ChromeDriver; //WebBrowser.CurrentChromeWindow.FindElement(By.Id("title")).SendKeys("Test Title"); //WebBrowser.CurrentChromeWindow.SwitchTo().Frame("content_ifr"); //WebBrowser.CurrentChromeWindow.SwitchTo().ActiveElement().SendKeys("Test Content"); //WebBrowser.CurrentChromeWindow.SwitchTo().DefaultContent(); //Thread.Sleep(3000); //WebBrowser.CurrentChromeWindow.FindElement(By.Id("publish")).Click(); //var contentFrame = firefox.FindElement(By.Id("content_ifr")); //contentFrame.SendKeys("Test Content"); //firefox.SwitchTo().Frame(firefox.FindElement(By.Id("content_ifr")).SendKeys("Test Content")); //firefox.FindElement(By.XPath(".//*[@id='tinymce']/p")).SendKeys("Test Content"); //Thread.Sleep(10); //chrome.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(10)); //WebDriverWait publishButtonWait = new WebDriverWait(chrome, TimeSpan.FromSeconds(2)); //ChromeWebElement publishButton = publishButtonWait.until(ExpectedConditions.ElementToBeClickable(By.Id("publish"))); //chrome.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(10)); //Thread.Sleep(10); NewPostPage.AddNewPost(); }