//implement methods public override void ClearForm() { WaitForEditorToDisplay(); WaitForFrameToDisplay(); WaitForTinyMceToDisplay(); EditorContentArea.Clear(); this.DriverCommands.WaitToSwitchWindow(_currentWindow, 3); }
public override void ClearForm() { WaitForEditorToDisplay(); WaitForLightboxFrameToDisplay(); WaitForIFrameToDisplay(); ReWaitForTinyMceToDisplay(); EditorContentArea.Clear(); this.DriverCommands.WaitToSwitchWindow(this.Parent.CurrentWindowHandle, 3); }
public void ClearForm(WebElementWrapper lastElementExecuted) { LastElementExecuted = lastElementExecuted; WaitForEditorToDisplay(); WaitForFrameToDisplay(); ReWaitForTinyMceToDisplay(); EditorContentArea.Clear(); this.DriverCommands.WaitToSwitchWindow(_currentWindow, 3); }
public void HighlightSentenceOnEditor() { WaitForEditorToDisplay(); WaitForFrameToDisplay(); ReWaitForTinyMceToDisplay(); //EditorContentArea.SendKeys(Keys.Control + "a"); EditorContentArea.SendKeys(Keys.Home); EditorContentArea.SendKeys(Keys.Shift + Keys.ArrowRight); this.DriverCommands.WaitToSwitchWindow(_currentWindow, 3); }
private void WaitForTinyMceToDisplay() { bool enabled = EditorContentArea.WaitUntilExists(10).Enabled; bool displayed = EditorContentArea.WaitUntilVisible(15).Displayed; if (EditorContentArea.WrappedElement.GetType() != typeof(DummyWebElement)) { if ((displayed == false) || (enabled == false)) { throw new Exception(this.Utilities.GetInvisibleErrorMessage(EditorContentArea.By.ToString())); } } }
public void InputFormFields(WebElementWrapper lastElementExecuted) { LastElementExecuted = lastElementExecuted; WaitForEditorToDisplay(); //WaitForFrameToDisplay(); //ReWaitForTinyMceToDisplay(); if (Gaps <= 0) { if (DoFileUpload) { UploadImage(); } WaitForFrameToDisplay(); //WaitForTinyMceToDisplay(); ReWaitForTinyMceToDisplay(); EditorContentArea.SendKeys(ContentData); } else { for (int i = 0; i < Gaps; i++) { if (DoFileUpload) { UploadImage(); } WaitForFrameToDisplay(); WaitForTinyMceToDisplay(); EditorContentArea.SendKeys(GapContentData[i]); this.DriverCommands.WaitToSwitchWindow(_currentWindow, 3); InsertNewGapLink.Wait(3).Click(); //WaitForFrameToDisplay(); //WaitForTinyMceToDisplay(); } WaitForFrameToDisplay(); WaitForTinyMceToDisplay(); EditorContentArea.SendKeys(ContentData); } //Driver.SwitchTo().Window(_currentWindow); this.DriverCommands.WaitToSwitchWindow(_currentWindow, 3); }
public override void InputFormFields() { WaitForEditorToDisplay(); if (DoFileUpload) { UploadImage(); } WaitForLightboxFrameToDisplay(); WaitForIFrameToDisplay(); ReWaitForTinyMceToDisplay(); EditorContentArea.SendKeys(ContentData); this.DriverCommands.WaitToSwitchWindow(this.Parent.CurrentWindowHandle, 3); }
public void InputFormFields(WebElementWrapper lastElementExecuted) { LastElementExecuted = lastElementExecuted; WaitForEditorToDisplay(); if (DoFileUpload) { UploadImage(); } WaitForLightboxFrameToDisplay(); WaitForIFrameToDisplay(); ReWaitForTinyMceToDisplay(); EditorContentArea.SendKeys(ContentData); this.DriverCommands.WaitToSwitchWindow(this.Parent.CurrentWindowHandle, 3); }