All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fluentlenium.core.css.CssSupport Maven / Gradle / Ivy

package org.fluentlenium.core.css;

/**
 * Features related to CSS loaded in the active page.
 *
 * @see CssControl
 */
public interface CssSupport {

    /**
     * Inject CSS into active page.
     * 

* Additional escaping might be necessary depending on in what form the source if provided. *

* Example: *

     * @Test
     * public void testMethod() {
     *      css().inject("#location {display: none}");
     *      css().inject("#location {\ndisplay: none\n}");
     * }
     * 
* * @param cssSource css source to inject */ void inject(String cssSource); /** * Inject CSS classpath resource into active page. *

* Example: *

     * @Test
     * public void testMethod() {
     *      css().injectResource("/path/to/css/resource.css");
     * }
     * 
* * @param cssResource css classpath resource to inject */ void injectResource(String cssResource); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy