
com.codeborne.selenide.ShadowHost Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of selenide-core Show documentation
Show all versions of selenide-core Show documentation
Selenide = concise API for Selenium WebDriver
The newest version!
package com.codeborne.selenide;
import org.openqa.selenium.support.FindBy;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Provides to find specific page factory locators inside shadow roots. For example:
*
* {@code
* @ShadowHost({@FindBy(...shadowHost...), @FindBy(...innerShadowHost...)})
* @FindBy(...targetLocator...)
* public SelenideElement locatorInShadowRoot;
* }
*
* The order of locators inside this annotation is important. Every next locator means more deep shadow host.
* @since 7.8.0
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface ShadowHost {
/**
* @return array of shadow hosts
*/
FindBy[] value();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy