Esempio n. 1
0
 private void WaitForFrameToDisplay()
 {
     //_currentWindow = Driver.CurrentWindowHandle;
     this.CurrentWindowHandle = Driver.CurrentWindowHandle;
     Report.Write("The current window is: '" + this.CurrentWindowHandle + "'.");
     LightBox.WaitUntilExists(3);
     IFrame.WaitUntilExists(3);
     //Driver.SwitchTo().Frame(IFrame.Element);
     DriverCommands.WaitToSwitchFrame(IFrame, 3);
 }
Esempio n. 2
0
 private void WaitForFrameToDisplay()
 {
     if ((this.PageNames == PageNames.TestItemStandardPopup) ||
         (this.PageNames == PageNames.CreateNewItem) ||
         (this.PageNames == PageNames.EditTestItem) ||
         (this.PageNames == PageNames.EditTask) ||
         (this.PageNames == PageNames.EditQuestion) ||
         (this.PageNames == PageNames.EditRubric))
     {
         //switch to window
         DriverCommands.WaitToSwitchWindow(_currentWindow, 5);
         LightBox.WaitUntilExists(3);
         IFrame.WaitUntilExists(3);
         //Driver.SwitchTo().Frame(IFrame.Element);
         DriverCommands.WaitToSwitchFrame(IFrame, 3);
     }
 }