/** * Get context associated to the given qualifier. If the {@link Default} qualifier is given, the returned context tries to * resolves the active context before each method invocation. If the active context is available, the returned context * behaves like the active one. */ public static GrapheneContext getContextFor(Class<?> qualifier) { return INSTANCE.getContextFor(qualifier); }
/** * Returns last known context which has been access by a test */ public static GrapheneContext lastContext() { return INSTANCE.lastContext(); }
/** * Removes the context associated to the given qualifier. * * @param qualifier * @see #setContextFor(org.jboss.arquillian.graphene.spi.configuration.GrapheneConfiguration, org.openqa.selenium.WebDriver, * java.lang.Class) */ public static void removeContextFor(Class<?> qualifier) { INSTANCE.removeContextFor(qualifier); }
/** * Creates a new context for the given webdriver, configuration and qualifier. <strong>When you create the context, you are * responsible to invoke {@link #removeContextFor(java.lang.Class) } after the context is no longer valid.</strong> * * @return created context * @see #getContextFor(java.lang.Class) * @see #removeContextFor(java.lang.Class) */ public static GrapheneContext setContextFor(GrapheneConfiguration configuration, WebDriver driver, Class<?> qualifier) { return INSTANCE.setContextFor(configuration, driver, qualifier); }
/** * Creates a new context for the given webdriver, configuration and qualifier. <strong>When you create the context, you are * responsible to invoke {@link #removeContextFor(java.lang.Class) } after the context is no longer valid.</strong> * * @return created context * @see #getContextFor(java.lang.Class) * @see #removeContextFor(java.lang.Class) */ public static GrapheneContext setContextFor(GrapheneConfiguration configuration, WebDriver driver, Class<?> qualifier) { return INSTANCE.setContextFor(configuration, driver, qualifier); }
/** * Get context associated to the given qualifier. If the {@link Default} qualifier is given, the returned context tries to * resolves the active context before each method invocation. If the active context is available, the returned context * behaves like the active one. */ public static GrapheneContext getContextFor(Class<?> qualifier) { return INSTANCE.getContextFor(qualifier); }
/** * Removes the context associated to the given qualifier. * * @param qualifier * @see #setContextFor(org.jboss.arquillian.graphene.spi.configuration.GrapheneConfiguration, org.openqa.selenium.WebDriver, * java.lang.Class) */ public static void removeContextFor(Class<?> qualifier) { INSTANCE.removeContextFor(qualifier); }
/** * Returns last known context which has been access by a test */ public static GrapheneContext lastContext() { return INSTANCE.lastContext(); }