Click or drag to resize

DriverContext Class

Framework to automate tests using Selenium WebDriver
Contains handle to driver and methods for web browser.
Inheritance Hierarchy
SystemObject
  OcarambaDriverContext

Namespace: Ocaramba
Assembly: OcarambaLite (in OcarambaLite.dll) Version: 1.0.0+d8e789f8644d1a9b63485ad7914acf4f489f3ef9
Syntax
C#
public class DriverContext
Request Example

The DriverContext type exposes the following members.

Constructors
 NameDescription
Public methodDriverContextInitializes a new instance of the DriverContext class
Top
Properties
 NameDescription
Public propertyCrossBrowserEnvironment Gets or sets the Environment Browsers from App.config.
Public propertyCurrentDirectory Gets or sets directory where assembly files are located.
Public propertyDownloadFolder Gets Sets Folder name for Download.
Public propertyDriver Gets driver Handle.
Public propertyIsTestFailed Gets or sets a value indicating whether [test failed].
Public propertyLogTest Gets or sets test logger.
Public propertyPageSourceFolder Gets Sets Folder name for PageSource.
Public propertyPerformanceMeasures Gets instance of Performance PerformanceMeasures class.
Public propertyScreenShotFolder Gets Sets Folder name for ScreenShot.
Public propertyTestTitle Gets or sets the test title.
Public propertyVerifyMessages Gets all verify messages.
Top
Methods
 NameDescription
Public methodDeleteAllCookies Deletes all cookies from the page.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodLogJavaScriptErrors Logs JavaScript errors.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodSavePageSource Saves the page source.
Public methodSaveScreenshot Saves the screenshot.
Public methodStart Starts the specified Driver.
Public methodStop Stop browser instance.
Public methodTakeAndSaveScreenshot Takes and saves screen shot.
Public methodTakeScreenshot Takes the screenshot.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWindowMaximize Maximizes the current window if it is not already maximized.
Top
Events
 NameDescription
Public eventDriverOptionsSet Occurs when [driver options set].
Top
See Also