类 DriverActions

    • 构造器详细资料

      • DriverActions

        public DriverActions​(org.openqa.selenium.WebDriver driver)
    • 方法详细资料

      • getBrowserOuterRect

        public org.openqa.selenium.Rectangle getBrowserOuterRect()
        Location and size of entire browser(outer window)
      • getBrowserViewPortLocationOnScreenInBrowserMaxMode

        public org.openqa.selenium.Point getBrowserViewPortLocationOnScreenInBrowserMaxMode()
        Location and size of browser inner view port on screen
      • scrollIntoView

        public org.openqa.selenium.Point scrollIntoView​(org.openqa.selenium.WebElement e)
        Scroll element into view port and return the relative location to the top-left corner of view port
      • getElementLocationOnPage

        public org.openqa.selenium.Point getElementLocationOnPage​(org.openqa.selenium.WebElement e)
        get element location absolute to the top and left corner of entire page by driver
      • getElementRectOnScreenInBrowserMaxMode

        public org.openqa.selenium.Rectangle getElementRectOnScreenInBrowserMaxMode​(org.openqa.selenium.WebElement e)
        Element location and dimension on screen and scrolling into view automatically in browser normal max mode
      • getElementRectOnScreenInBrowserFullScreenMode

        public org.openqa.selenium.Rectangle getElementRectOnScreenInBrowserFullScreenMode​(org.openqa.selenium.WebElement e)
        Element location and dimension on screen and scrolling into view automatically in browser Full Screen mode
      • requestBrowserFullScreenMode

        public boolean requestBrowserFullScreenMode()
        Request browser full screen mode by WebDriver
      • takeScreenshot

        public <X> X takeScreenshot​(org.openqa.selenium.OutputType<X> outputType)
        Take default screenshot by WebDriver
      • takeScreenshot

        public <X,​Y> Pair<X,​Y> takeScreenshot​(org.openqa.selenium.OutputType<X> outputTypeX,
                                                          org.openqa.selenium.OutputType<Y> outputTypeY)
        Take default screenshot by WebDriver
      • takeFullDomPageScreenshot

        public <X> X takeFullDomPageScreenshot​(org.openqa.selenium.OutputType<X> outputType)
                                        throws IOException
        Take full DOM page screenshot for all browsers
        抛出:
        IOException
      • takeFullDomPageScreenshot

        public <X,​Y> Pair<X,​Y> takeFullDomPageScreenshot​(org.openqa.selenium.OutputType<X> outputTypeX,
                                                                     org.openqa.selenium.OutputType<Y> outputTypeY)
                                                              throws IOException
        Take full DOM page screenshot for all browsers
        抛出:
        IOException