C# Class QualityBot.Scrapers.Facades.WebDriverFacade

Inheritance: IBrowserFacade
Mostrar archivo Open project: Ancestry/quality-bot Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
ScrapeData ( bool useCurrent = true ) : PageData
WebDriverFacade ( IWebDriver web, Request request, ITakesScreenshot ss = null, IJavaScriptExecutor js = null ) : System

Private Methods

Method Description
BrowserName ( ) : string
BrowserVersion ( ) : string
GetBrowserInfo ( ) : void
GetCookies ( ) : string[]
GetElements ( ) : string
GetPageResources ( ) : IEnumerable
GetPageSource ( ) : string
GetScreenshotImage ( ) : Image
GetUrl ( ) : string
GetViewportSize ( ) : Size
InjectJavascriptHelpers ( ) : void
IntFromObject ( object number ) : int
Platform ( ) : string
RunUserScript ( ) : void
SetUrl ( ) : void
SetViewportSize ( ) : void

Sets the browser viewport to the specified size.

Method Details

Dispose() public method

public Dispose ( ) : void
return void

ScrapeData() public method

public ScrapeData ( bool useCurrent = true ) : PageData
useCurrent bool
return PageData

WebDriverFacade() public method

public WebDriverFacade ( IWebDriver web, Request request, ITakesScreenshot ss = null, IJavaScriptExecutor js = null ) : System
web IWebDriver
request QualityBot.RequestPocos.Request
ss ITakesScreenshot
js IJavaScriptExecutor
return System