A Page class represents content of a web page or frame.
Inheritance: ISearchContext, IJavaScriptExecutor
Beispiel #1
0
 public void Init()
 {
     this.webDriver = MockRepository.GenerateStub<IWebDriver>();
     this.javaScriptExecutor = MockRepository.GenerateStub<IJavaScriptExecutor>();
     this.webDriver.Url = "http://supersite.com/myhome/page.aspx";
     this.page = ContainerFactory.Page<SimplePageForTest>(this.webDriver, this.javaScriptExecutor);
 }
Beispiel #2
0
 public void WhenITryGoToPage(string urlPart)
 {
     try
     {
         var webDriver = (RemoteWebDriver)Browser.Current;
         this.currentPage = webDriver.GoTo<ElementsPage>("http://localhost:{0}/{1}".FInv(Configuration.ServerPort, urlPart));
     }
     catch (Exception exception)
     {
         this.catchedNavigationException = exception;
     }
 }
 /// <summary>Initializes a new instance of the <see cref="PageValidationException"/> class.</summary>
 /// <param name="message">The error message that explains the reason for the exception. </param>
 /// <param name="page">The page. </param>
 /// <param name="innerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. </param>
 public PageValidationException(string message, BasePage page, Exception innerException)
     : base(message, innerException)
 {
     this.Page = page;
 }
 /// <summary>Initializes a new instance of the <see cref="PageValidationException"/> class.</summary>
 /// <param name="message">The message that describes the error. </param>
 /// <param name="page">The page. </param>
 public PageValidationException(string message, BasePage page)
     : base(message)
 {
     this.Page = page;
 }