SeleniumClient\WebElement
Synopsis
class WebElement
{
- // members
- private $_driver;
- private $_elementId;
- // methods
- public void __construct()
- public Integer getElementId()
- public void sendKeys()
- public String getText()
- public String getTagName()
- public String getAttribute()
- public Boolean isSelected()
- public Boolean isDisplayed()
- public Boolean isEnabled()
- public void clear()
- public void click()
- public void submit()
- public Array describe()
- public Array getCoordinates()
- public Array getLocationOnScreenOnceScrolledIntoView()
- public WebElement findElement()
- public Array findElements()
- public Ambiguous waitForElementUntilIsPresent()
- public WebElement waitForElementUntilIsDisplayed()
- public WebElement waitForElementUntilIsEnabled()
- public WebElement waitForElementUntilTextIsChanged()
- public WebElement waitForElementUntilIsPresentWithSpecificText()
Members
private
- $_driver
- $_elementId
Methods
public
- __construct()
- clear() — Clear current element's text
- click() — Click on element
- describe() — Gets element's description
- findElement() — Find element within current element
- findElements() — Find elements within current element
- getAttribute() — Gets element's specified attribute's value
- getCoordinates() — Get element's coordinates
- getElementId() — Gets element's id
- getLocationOnScreenOnceScrolledIntoView() — Get element's coordinates after scrolling
- getTagName() — Gets element's tag name
- getText() — Gets element's visible text
- isDisplayed() — Gets whether element is displayed
- isEnabled() — Gets whether element is enabled
- isSelected() — Gets whether element is selected
- sendKeys() — Send text to element
- submit() — Submit form from element
- waitForElementUntilIsDisplayed() — Wait for current element to be displayed
- waitForElementUntilIsEnabled() — Wait for current element to be enabled
- waitForElementUntilIsPresent() — Wait for expected element to be present within current element
- waitForElementUntilIsPresentWithSpecificText() — Wait until current element's text equals specified
- waitForElementUntilTextIsChanged() — Wait until current element's text has changed