Interface BrowserNode


public interface BrowserNode
Interface providing utility methods for element nodes returned byBrowserApplication.getCurrentDocument()
Since:
4.2.436
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Checks wether this element is (partly) visible in current viewport, or not.
    void
    Sets the given html as inner html of this browser node.
    void
    Sets a style attribute for this browser node.
    void
    Applies given style mappings for this browser node.
  • Method Details

    • setStyleAttribute

      void setStyleAttribute(String style, String value) throws DocumentGoneException
      Sets a style attribute for this browser node.
      Parameters:
      style - the style to set the given value for
      value - the value for the style attribute
      Throws:
      DocumentGoneException - if the element belonging to this browser node isn't accessible any more in the underlying document
      Since:
      4.2.436
    • setStyleAttributes

      void setStyleAttributes(Map<String,String> attributes) throws DocumentGoneException
      Applies given style mappings for this browser node.
      Parameters:
      attributes - map containing style to value mappings
      Throws:
      DocumentGoneException - if the element belonging to this browser node isn't accessible any more in the underlying document
      Since:
      4.2.436
    • setInnerHTML

      void setInnerHTML(String html) throws DocumentGoneException
      Sets the given html as inner html of this browser node.
      Parameters:
      html - the html string to set as inner html
      Throws:
      DocumentGoneException - if the element belonging to this browser node isn't accessible any more in the underlying document
      Since:
      4.2.436
    • scrollIntoView

      void scrollIntoView() throws DocumentGoneException
      Checks wether this element is (partly) visible in current viewport, or not. If this element is not visible, it will be scrolled into view.
      Throws:
      DocumentGoneException - if the element belonging to this browser node isn't accessible any more in the underlying document
      Since:
      5.0.100