Class ContentMappedBy
- java.lang.Object
-
- org.openqa.selenium.By
-
- io.appium.java_client.pagefactory.bys.ContentMappedBy
-
public class ContentMappedBy extends org.openqa.selenium.By
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openqa.selenium.By
org.openqa.selenium.By.ByClassName, org.openqa.selenium.By.ByCssSelector, org.openqa.selenium.By.ById, org.openqa.selenium.By.ByLinkText, org.openqa.selenium.By.ByName, org.openqa.selenium.By.ByPartialLinkText, org.openqa.selenium.By.ByTagName, org.openqa.selenium.By.ByXPath, org.openqa.selenium.By.Remotable
-
-
Constructor Summary
Constructors Constructor Description ContentMappedBy(java.util.Map<ContentType,org.openqa.selenium.By> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.WebElement
findElement(org.openqa.selenium.SearchContext context)
java.util.List<org.openqa.selenium.WebElement>
findElements(org.openqa.selenium.SearchContext context)
java.lang.String
toString()
org.openqa.selenium.By
useContent(ContentType type)
This method sets required content type for the further searching.
-
-
-
Constructor Detail
-
ContentMappedBy
public ContentMappedBy(java.util.Map<ContentType,org.openqa.selenium.By> map)
-
-
Method Detail
-
useContent
public org.openqa.selenium.By useContent(@Nonnull ContentType type)
This method sets required content type for the further searching.- Parameters:
type
- required content typeContentType
- Returns:
- self-reference.
-
findElement
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.SearchContext context)
- Overrides:
findElement
in classorg.openqa.selenium.By
-
findElements
public java.util.List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.SearchContext context)
- Specified by:
findElements
in classorg.openqa.selenium.By
-
toString
public java.lang.String toString()
- Overrides:
toString
in classorg.openqa.selenium.By
-
-