public final class TestCaseAnnotations extends Object
Modifier and Type | Method and Description |
---|---|
static TestCaseAnnotations |
forTestCase(Object testCase) |
void |
injectDriver(org.openqa.selenium.WebDriver driver)
Instantiate the @Managed-annotated WebDriver instance with current WebDriver if the annotated field is present.
|
boolean |
isUniqueSession() |
static boolean |
isUniqueSession(Class<?> testClass) |
static boolean |
isWebTest(Class<?> testClass) |
static boolean |
supportsWebTests(Class clazz)
Does this class support web tests?
Test cases that support web tests need to have at least a WebDriver field annotated with the @Managed
annotation.
|
public static TestCaseAnnotations forTestCase(Object testCase)
public void injectDriver(org.openqa.selenium.WebDriver driver)
public static boolean supportsWebTests(Class clazz)
public boolean isUniqueSession()
public static boolean isUniqueSession(Class<?> testClass)
public static boolean isWebTest(Class<?> testClass)
Copyright © 2011–2014 Wakaleo Consulting. All rights reserved.