| VerifyThat(DriverContext, Boolean, Boolean, Action) Method |
Framework to automate tests using Selenium WebDriver
Verify group of assets.
Namespace: OcarambaAssembly: OcarambaLite (in OcarambaLite.dll) Version: 1.0.0+d8e789f8644d1a9b63485ad7914acf4f489f3ef9
Syntax public static void That(
DriverContext driverContext,
bool enableScreenShot,
bool enableSavePageSource,
params Action[] myAsserts
)
Request Example
Parameters
- driverContext DriverContext
- Container for driver.
- enableScreenShot Boolean
- Enable screenshot.
- enableSavePageSource Boolean
- Enable save page source.
- myAsserts Action
- Group asserts.
Example How to use it:
Verify.That(
this.DriverContext,
true,
false,
() => Assert.AreEqual(5 + 7 + 2, forgotPassword.EnterEmail(5, 7, 2)),
() => Assert.AreEqual("Your e-mail's been sent!", forgotPassword.ClickRetrievePassword));
See Also