SingleBrowserPath¶
-
public final class
SingleBrowserPath
implements Path¶ An implementation of
Path
that is tailored to a singleton browser, thus allows some additional API’s for actions (for those who favor object-oriented API style)
Fields¶
anchor¶
-
public static final SingleBrowserPath
anchor
¶
body¶
-
public static final SingleBrowserPath
body
¶
button¶
div¶
-
public static final SingleBrowserPath
div
¶
element¶
-
public static final SingleBrowserPath
element
¶
form¶
-
public static final SingleBrowserPath
form
¶
header¶
-
public static final SingleBrowserPath
header
¶
header1¶
-
public static final SingleBrowserPath
header1
¶
header2¶
-
public static final SingleBrowserPath
header2
¶
header3¶
-
public static final SingleBrowserPath
header3
¶
header4¶
-
public static final SingleBrowserPath
header4
¶
header5¶
-
public static final SingleBrowserPath
header5
¶
header6¶
-
public static final SingleBrowserPath
header6
¶
html¶
-
public static final SingleBrowserPath
html
¶
input¶
-
public static final SingleBrowserPath
input
¶
listItem¶
-
public static final SingleBrowserPath
listItem
¶
section¶
-
public static final SingleBrowserPath
section
¶
span¶
-
public static final SingleBrowserPath
span
¶
svg¶
-
public static final SingleBrowserPath
svg
¶
unorderedList¶
-
public static final SingleBrowserPath
unorderedList
¶
Methods¶
and¶
-
public Path
and
(ElementProperty... prop)¶
dragAndDrop¶
-
public Operations.DragAndDrop
dragAndDrop
()¶ drag and drop this element, to another element or another location. Examples:
element.dragAndDrop().to(anotherElement); element.dragAndDrop().to(50, 50);
Returns: DragAndDrop instance. See examples for usage.
find¶
-
public WebElement
find
()¶ Find the (first) element in the browser for this path
Returns: the WebElement
findAll¶
getElementProperties¶
-
public List<ElementProperty>
getElementProperties
()¶
scrollTo¶
-
public WebElement
scrollTo
()¶ scroll the browser until this element is visible
Returns: the WebElement that was scrolled to
sendKeys¶
-
public void
sendKeys
(CharSequence... charsToSend)¶ send keys to element
Parameters: - charsToSend – the keys to send. Examples:
input.sendKeys("abc"); input.sendKeys("a", "bc");
Throws: - Operations.OperationFailedException –
- operation failed. Includes root cause.
that¶
-
public Path
that
(ElementProperty... prop)¶