public class HtmlSerializerNormalizedText extends Object
Note: There conversation done by selenium WebElement#getText() is different.
Modifier and Type | Class and Description |
---|---|
protected static class |
HtmlSerializerNormalizedText.HtmlSerializerTextBuilder
Helper to compose the text for the serializer based on several modes.
|
Constructor and Description |
---|
HtmlSerializerNormalizedText() |
public String asText(DomNode node)
node
- a nodeprotected void appendChildren(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder, DomNode node)
builder
- the StringBuilder to add tonode
- the node to processprotected void appendNode(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder, DomNode node)
builder
- the StringBuilder to add tonode
- the node to processprotected void appendDomNode(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder, DomNode domNode)
HtmlHiddenInput
.builder
- the StringBuilder to add todomNode
- the target to processprotected void appendSubmitInput(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder, HtmlSubmitInput htmlSubmitInput)
HtmlSubmitInput
.builder
- the StringBuilder to add tohtmlSubmitInput
- the target to processprotected void appendInput(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder, HtmlInput htmlInput)
HtmlInput
.builder
- the StringBuilder to add tohtmlInput
- the target to processprotected void appendNumberInput(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder, HtmlNumberInput htmlNumberInput)
HtmlNumberInput
.builder
- the StringBuilder to add tohtmlNumberInput
- the target to processprotected void appendResetInput(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder, HtmlResetInput htmlResetInput)
HtmlResetInput
.builder
- the StringBuilder to add tohtmlResetInput
- the target to processprotected void appendUnorderedList(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder, HtmlUnorderedList htmlUnorderedList)
HtmlUnorderedList
.builder
- the StringBuilder to add tohtmlUnorderedList
- the target to processprotected void appendDetails(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder, HtmlDetails htmlDetails)
HtmlDetails
.builder
- the StringBuilder to add tohtmlDetails
- the target to processprotected void appendTitle(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder, HtmlTitle htmlTitle)
HtmlTitle
.builder
- the StringBuilder to add tohtmlTitle
- the target to processprotected void appendTableRow(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder, HtmlTableRow htmlTableRow)
HtmlTableRow
.builder
- the StringBuilder to add tohtmlTableRow
- the target to processprotected void appendTextArea(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder, HtmlTextArea htmlTextArea)
HtmlTextArea
.builder
- the StringBuilder to add tohtmlTextArea
- the target to processprotected void appendTable(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder, HtmlTable htmlTable)
HtmlTable
.builder
- the StringBuilder to add tohtmlTable
- the target to processprotected boolean appendTableRows(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder, List<HtmlTableRow> rows, boolean first, TableRowGroup skipParent1, TableRowGroup skipParent2)
HtmlTableRow
.builder
- the StringBuilder to add torows
- the rowsfirst
- if true this is the first oneskipParent1
- skip row if the parent is thisskipParent2
- skip row if the parent is thisprotected void appendSelect(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder, HtmlSelect htmlSelect)
HtmlSelect
.builder
- the StringBuilder to add tohtmlSelect
- the target to processprotected void appendOrderedList(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder, HtmlOrderedList htmlOrderedList)
HtmlOrderedList
taking care to numerate it.builder
- the StringBuilder to add tohtmlOrderedList
- the OL elementprotected void appendPreformattedText(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder, HtmlPreformattedText htmlPreformattedText)
HtmlPreformattedText
.builder
- the StringBuilder to add tohtmlPreformattedText
- the target to processprotected void appendInlineFrame(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder, HtmlInlineFrame htmlInlineFrame)
HtmlInlineFrame
.builder
- the StringBuilder to add tohtmlInlineFrame
- the target to processprotected void appendText(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder, DomText domText)
DomText
.builder
- the StringBuilder to add todomText
- the target to processprotected void appendBreak(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder, HtmlBreak htmlBreak)
HtmlBreak
.builder
- the StringBuilder to add tohtmlBreak
- the target to processprotected void appendCheckBoxInput(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder, HtmlCheckBoxInput htmlCheckBoxInput)
HtmlCheckBoxInput
.builder
- the StringBuilder to add tohtmlCheckBoxInput
- the target to processprotected void appendRadioButtonInput(HtmlSerializerNormalizedText.HtmlSerializerTextBuilder builder, HtmlRadioButtonInput htmlRadioButtonInput)
HtmlRadioButtonInput
.builder
- the StringBuilder to add tohtmlRadioButtonInput
- the target to processpublic void setIgnoreMaskedElements(boolean ignore)
ignore
- indicates if masked elements should be ignored or notCopyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.