Interface BrowserNode
public interface BrowserNode
Interface providing utility methods for
element nodes
returned by
BrowserApplication.getCurrentDocument()
- Since:
- 4.2.436
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks wether this element is (partly) visible in current viewport, or not.void
setInnerHTML
(String html) Sets the given html as inner html of this browser node.void
setStyleAttribute
(String style, String value) Sets a style attribute for this browser node.void
setStyleAttributes
(Map<String, String> attributes) Applies given style mappings for this browser node.
-
Method Details
-
setStyleAttribute
Sets a style attribute for this browser node.- Parameters:
style
- the style to set the given value forvalue
- 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
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
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
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
-