Class RemoteWebElement

  • All Implemented Interfaces:
    org.openqa.selenium.interactions.Locatable, org.openqa.selenium.internal.FindsByClassName, org.openqa.selenium.internal.FindsByCssSelector, org.openqa.selenium.internal.FindsById, org.openqa.selenium.internal.FindsByLinkText, org.openqa.selenium.internal.FindsByName, org.openqa.selenium.internal.FindsByTagName, org.openqa.selenium.internal.FindsByXPath, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement, org.openqa.selenium.WrapsDriver

    public class RemoteWebElement
    extends java.lang.Object
    implements org.openqa.selenium.WebElement, org.openqa.selenium.internal.FindsByLinkText, org.openqa.selenium.internal.FindsById, org.openqa.selenium.internal.FindsByName, org.openqa.selenium.internal.FindsByTagName, org.openqa.selenium.internal.FindsByClassName, org.openqa.selenium.internal.FindsByCssSelector, org.openqa.selenium.internal.FindsByXPath, org.openqa.selenium.WrapsDriver, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.interactions.Locatable
    • Constructor Detail

      • RemoteWebElement

        public RemoteWebElement()
    • Method Detail

      • setFoundBy

        protected void setFoundBy​(org.openqa.selenium.SearchContext foundFrom,
                                  java.lang.String locator,
                                  java.lang.String term)
      • getId

        public java.lang.String getId()
      • setId

        public void setId​(java.lang.String id)
      • setFileDetector

        public void setFileDetector​(FileDetector detector)
      • click

        public void click()
        Specified by:
        click in interface org.openqa.selenium.WebElement
      • submit

        public void submit()
        Specified by:
        submit in interface org.openqa.selenium.WebElement
      • sendKeys

        public void sendKeys​(java.lang.CharSequence... keysToSend)
        Specified by:
        sendKeys in interface org.openqa.selenium.WebElement
      • clear

        public void clear()
        Specified by:
        clear in interface org.openqa.selenium.WebElement
      • getTagName

        public java.lang.String getTagName()
        Specified by:
        getTagName in interface org.openqa.selenium.WebElement
      • getAttribute

        public java.lang.String getAttribute​(java.lang.String name)
        Specified by:
        getAttribute in interface org.openqa.selenium.WebElement
      • isSelected

        public boolean isSelected()
        Specified by:
        isSelected in interface org.openqa.selenium.WebElement
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface org.openqa.selenium.WebElement
      • getText

        public java.lang.String getText()
        Specified by:
        getText in interface org.openqa.selenium.WebElement
      • getCssValue

        public java.lang.String getCssValue​(java.lang.String propertyName)
        Specified by:
        getCssValue in interface org.openqa.selenium.WebElement
      • findElements

        public java.util.List<org.openqa.selenium.WebElement> findElements​(org.openqa.selenium.By by)
        Specified by:
        findElements in interface org.openqa.selenium.SearchContext
        Specified by:
        findElements in interface org.openqa.selenium.WebElement
      • findElement

        public org.openqa.selenium.WebElement findElement​(org.openqa.selenium.By by)
        Specified by:
        findElement in interface org.openqa.selenium.SearchContext
        Specified by:
        findElement in interface org.openqa.selenium.WebElement
      • findElement

        protected org.openqa.selenium.WebElement findElement​(java.lang.String using,
                                                             java.lang.String value)
      • findElements

        protected java.util.List<org.openqa.selenium.WebElement> findElements​(java.lang.String using,
                                                                              java.lang.String value)
      • findElementById

        public org.openqa.selenium.WebElement findElementById​(java.lang.String using)
        Specified by:
        findElementById in interface org.openqa.selenium.internal.FindsById
      • findElementsById

        public java.util.List<org.openqa.selenium.WebElement> findElementsById​(java.lang.String using)
        Specified by:
        findElementsById in interface org.openqa.selenium.internal.FindsById
      • findElementByLinkText

        public org.openqa.selenium.WebElement findElementByLinkText​(java.lang.String using)
        Specified by:
        findElementByLinkText in interface org.openqa.selenium.internal.FindsByLinkText
      • findElementsByLinkText

        public java.util.List<org.openqa.selenium.WebElement> findElementsByLinkText​(java.lang.String using)
        Specified by:
        findElementsByLinkText in interface org.openqa.selenium.internal.FindsByLinkText
      • findElementByName

        public org.openqa.selenium.WebElement findElementByName​(java.lang.String using)
        Specified by:
        findElementByName in interface org.openqa.selenium.internal.FindsByName
      • findElementsByName

        public java.util.List<org.openqa.selenium.WebElement> findElementsByName​(java.lang.String using)
        Specified by:
        findElementsByName in interface org.openqa.selenium.internal.FindsByName
      • findElementByClassName

        public org.openqa.selenium.WebElement findElementByClassName​(java.lang.String using)
        Specified by:
        findElementByClassName in interface org.openqa.selenium.internal.FindsByClassName
      • findElementsByClassName

        public java.util.List<org.openqa.selenium.WebElement> findElementsByClassName​(java.lang.String using)
        Specified by:
        findElementsByClassName in interface org.openqa.selenium.internal.FindsByClassName
      • findElementByCssSelector

        public org.openqa.selenium.WebElement findElementByCssSelector​(java.lang.String using)
        Specified by:
        findElementByCssSelector in interface org.openqa.selenium.internal.FindsByCssSelector
      • findElementsByCssSelector

        public java.util.List<org.openqa.selenium.WebElement> findElementsByCssSelector​(java.lang.String using)
        Specified by:
        findElementsByCssSelector in interface org.openqa.selenium.internal.FindsByCssSelector
      • findElementByXPath

        public org.openqa.selenium.WebElement findElementByXPath​(java.lang.String using)
        Specified by:
        findElementByXPath in interface org.openqa.selenium.internal.FindsByXPath
      • findElementsByXPath

        public java.util.List<org.openqa.selenium.WebElement> findElementsByXPath​(java.lang.String using)
        Specified by:
        findElementsByXPath in interface org.openqa.selenium.internal.FindsByXPath
      • findElementByPartialLinkText

        public org.openqa.selenium.WebElement findElementByPartialLinkText​(java.lang.String using)
        Specified by:
        findElementByPartialLinkText in interface org.openqa.selenium.internal.FindsByLinkText
      • findElementsByPartialLinkText

        public java.util.List<org.openqa.selenium.WebElement> findElementsByPartialLinkText​(java.lang.String using)
        Specified by:
        findElementsByPartialLinkText in interface org.openqa.selenium.internal.FindsByLinkText
      • findElementByTagName

        public org.openqa.selenium.WebElement findElementByTagName​(java.lang.String using)
        Specified by:
        findElementByTagName in interface org.openqa.selenium.internal.FindsByTagName
      • findElementsByTagName

        public java.util.List<org.openqa.selenium.WebElement> findElementsByTagName​(java.lang.String using)
        Specified by:
        findElementsByTagName in interface org.openqa.selenium.internal.FindsByTagName
      • execute

        protected Response execute​(java.lang.String command,
                                   java.util.Map<java.lang.String,​?> parameters)
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        This element's hash code, which is a hash of its internal opaque ID.
      • getWrappedDriver

        public org.openqa.selenium.WebDriver getWrappedDriver()
        Specified by:
        getWrappedDriver in interface org.openqa.selenium.WrapsDriver
      • isDisplayed

        public boolean isDisplayed()
        Specified by:
        isDisplayed in interface org.openqa.selenium.WebElement
      • getLocation

        public org.openqa.selenium.Point getLocation()
        Specified by:
        getLocation in interface org.openqa.selenium.WebElement
      • getSize

        public org.openqa.selenium.Dimension getSize()
        Specified by:
        getSize in interface org.openqa.selenium.WebElement
      • getRect

        public org.openqa.selenium.Rectangle getRect()
        Specified by:
        getRect in interface org.openqa.selenium.WebElement
      • getCoordinates

        public org.openqa.selenium.interactions.Coordinates getCoordinates()
        Specified by:
        getCoordinates in interface org.openqa.selenium.interactions.Locatable
      • getScreenshotAs

        @Beta
        public <X> X getScreenshotAs​(org.openqa.selenium.OutputType<X> outputType)
                              throws org.openqa.selenium.WebDriverException
        Specified by:
        getScreenshotAs in interface org.openqa.selenium.TakesScreenshot
        Throws:
        org.openqa.selenium.WebDriverException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toJson

        public java.util.Map<java.lang.String,​java.lang.Object> toJson()