Modifier and Type | Method and Description |
---|---|
OXPathType |
PAATEval_.eval_(DOMNode context,
Node astNode,
PAATStateEvalIterative state)
Need to call this method to check children so that memoization is applied
|
static FieldTypes |
ActionEngine.getFieldType(DOMNode n)
Returns a FieldType based on the HTML data of the node.
|
DOMElement |
ActionEngine.takeAction(DOMNode contextNode,
FieldTypes ft,
Action action) |
void |
ActionEngine.waitIfRequested(Action action,
DOMNode context)
Forces waiting after an action if specified
|
Modifier and Type | Method and Description |
---|---|
Integer |
SimpleExtractor.extractNode(DOMNode context,
String label,
Integer parent)
Deprecated.
Allows the extraction of the node specified by the pair (context,label) and returns a unique identifier
(as an
int ) that uniquely identifies this extraction marker. |
Integer |
NewSimpleExtractor.extractNode(DOMNode context,
String label,
Integer parent)
Allows the extraction of the node specified by the pair (context,label) and returns a unique identifier
(as an
int ) that uniquely identifies this extraction marker. |
Integer |
Extractor.extractNode(DOMNode context,
String label,
Integer parent)
Allows the extraction of the node specified by the pair (context,label) and returns a unique identifier
(as an
int ) that uniquely identifies this extraction marker. |
Integer |
SimpleExtractor.extractNode(DOMNode context,
String label,
Integer parent,
String value)
Deprecated.
Allows the extraction of the node specified by the pair (context,label) and returns a unique identifier
(as an
int ) that uniquely identifies this extraction marker. |
Integer |
NewSimpleExtractor.extractNode(DOMNode context,
String label,
Integer parent,
String value)
Allows the extraction of the node specified by the pair (context,label) and returns a unique identifier
(as an
int ) that uniquely identifies this extraction marker. |
Integer |
Extractor.extractNode(DOMNode context,
String label,
Integer parent,
String value)
Allows the extraction of the node specified by the pair (context,label) and returns a unique identifier
(as an
int ) that uniquely identifies this extraction marker. |
Modifier and Type | Method and Description |
---|---|
DOMNode |
OXPathContextNode.getNode()
Gets the object node
|
DOMNode |
OXPathContextNodeConstructed.getNode()
Returns our implementation of the wrapped node.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.Table<DOMNode,String,List<DOMNode>> |
OXPathContextNode.getByXPathBulk(String pathToAnchorNode,
Set<String> contextualAttributeNodes) |
com.google.common.collect.Table<DOMNode,String,List<DOMNode>> |
OXPathContextNode.getByXPathBulk(String pathToAnchorNode,
Set<String> contextualAttributeNodes) |
Modifier and Type | Method and Description |
---|---|
OXPathType |
OXPathContextNode.contextualize(List<DOMNode> domNodes) |
Constructor and Description |
---|
OXPathContextNode(DOMNode iNode,
int iParent,
int iLast)
Constructor for the class.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DOMNamedNodeMap<N extends DOMNode>
wrapping interface for
http://www.w3.org/2003/01/dom2-javadoc/org/w3c/dom/NamedNodeMap.html
|
Modifier and Type | Interface and Description |
---|---|
interface |
DOMDocument
Wrapping interface for http://www.w3.org/2003/01/dom2-javadoc/org/w3c/dom/Document.html
|
interface |
DOMElement
Wrapping interface for http://www.w3.org/2003/01/dom2-javadoc/org/w3c/dom/Element.html
|
interface |
DOmElementOnJS |
interface |
DOMHTMLForm |
interface |
DOMHTMLInputElement
For more information on this interface please see http://www.w3.org/TR/DOM-Level-2-HTML/
|
interface |
DOMHTMLOptionElement |
interface |
DOMHTMLSelect |
interface |
DOMHTMLTextAreaElement
Partially implemented.
|
interface |
DOMTypeableElement |
Modifier and Type | Method and Description |
---|---|
DOMNode |
DOMNode.appendChild(DOMNode newChild)
Adds a node to the end of the list of children of a specified parent node.
|
DOMNode |
DOMNode.getFirstChild() |
DOMNode |
DOMNode.getLastChild() |
DOMNode |
DOMNode.getNextSibling() |
DOMNode |
DOMNode.getParentNode() |
DOMNode |
DOMNode.getPreviousSibling() |
DOMNode |
DOMNode.insertBefore(DOMNode newChild,
DOMNode refChild)
Inserts the specified node before a reference element as a child of the current node.
|
DOMNode |
DOMNodeList.item(long index) |
DOMNode |
DOMNode.removeChild(DOMNode child)
Removes a child node from the DOM.
|
DOMNode |
DOMNode.replaceChild(DOMNode newChild,
DOMNode oldChild)
Replaces one child node of the specified element with another.
|
Modifier and Type | Method and Description |
---|---|
DOMNamedNodeMap<DOMNode> |
DOMNode.getAttributes()
Be careful can return null TODO: Gio check it!
|
Modifier and Type | Method and Description |
---|---|
DOMNode |
DOMNode.appendChild(DOMNode newChild)
Adds a node to the end of the list of children of a specified parent node.
|
short |
DOMNode.compareDocumentPosition(DOMNode other)
From the DOM standard
|
DOMRange |
DOMDocument.createRange(DOMNode startNode,
int startOffset,
DOMNode endNode,
int endOffSet) |
void |
DOMVisitor.endElement(DOMNode node)
Called after visiting allElements node's descendant
|
boolean |
DOMVisitor.filterOut(DOMNode node)
Returns true is the current node must be skipped during the visit, false otherwise
|
DOMNode |
DOMNode.insertBefore(DOMNode newChild,
DOMNode refChild)
Inserts the specified node before a reference element as a child of the current node.
|
boolean |
DOMNode.isDescendant(DOMNode node) |
boolean |
DOMNode.isEqualNode(DOMNode other) |
boolean |
DOMNode.isSameNode(DOMNode other) |
DOMNode |
DOMNode.removeChild(DOMNode child)
Removes a child node from the DOM.
|
DOMNode |
DOMNode.replaceChild(DOMNode newChild,
DOMNode oldChild)
Replaces one child node of the specified element with another.
|
void |
DOMVisitor.startElement(DOMNode node)
Called before visiting the node's children and descendants.
|
void |
DOMVisitor.visitComment(DOMNode node)
Called in case of the current
DOMNode is of type DOMNode.Type.COMMENT |
void |
DOMVisitor.visitProcessingInstruction(DOMNode node)
Called in case of the current
DOMNode is of type DOMNode.Type.PROCESSING_INSTRUCTION |
void |
DOMVisitor.visitText(DOMNode node)
Called in case of the current
DOMNode is of type DOMNode.Type.TEXT |
Modifier and Type | Method and Description |
---|---|
static DOMNode |
DOMNodeUtils.getElementAncestor(DOMNode node) |
static DOMNode |
DOMNodeUtils.getLowestCommonAncestor(Collection<DOMNode> nodes)
Gets the lowest common ancestor of a list of DOM nodes.
|
static DOMNode |
DOMNodeUtils.getLowestCommonAncestor(DOMNode node,
DOMNode... nodes) |
Modifier and Type | Method and Description |
---|---|
static Comparator<DOMNode> |
DOMNodeFinderService.getComparatorBasedOnDocumentPosition() |
Modifier and Type | Method and Description |
---|---|
static XPathNodePointerRanking |
DOMNodeFinderService.computeAllPointers(DOMNode target,
DOMNode rootNode,
String rootPath,
int maxSteps) |
static XPathNodePointerRanking |
DOMNodeFinderService.computeAllPointersExtended(DOMNode target,
DOMNode rootNode,
String rootPath,
int maxSteps) |
static XPathNodePointer |
DOMNodeFinderService.computeBestPointer(DOMNode target) |
static String |
XPathFinderByCanonical.computeCanonicalXPath(DOMNode node)
Gets the canonical XPath for a DOM node.
|
static XPathNodePointerRanking |
DOMNodeFinderService.computeRankingUsingTypesExtended(DOMNode target,
DOMNode rootNode,
String rootPath,
int maxSteps,
EnumSet<XPathNodePointer.Type> types,
Integer threshold) |
static XPathNodePointerRanking |
DOMNodeFinderService.computeRobustPointers(DOMNode target) |
static String |
FinderUtils.elementName(DOMNode node) |
static XPathNodePointer |
XPathFinderByCanonical.getCanNodePointer(DOMNode node,
String rootPath,
DOMNodeFinderService.Score threshold)
NOT IMPLEMENTED.
|
static XPathNodePointer |
DOMNodeFinderService.getCanonicalXPath(DOMNode target)
Gets the absolute canonical XPath expression for a DOM node.
|
static XPathNodePointer |
XPathFinderByCanonical.getCanonicalXPath(DOMNode node)
Gets the absolute canonical XPath expression for a DOM node.
|
static XPathNodePointer |
DOMNodeFinderService.getCanonicalXPath(DOMNode from,
DOMNode target) |
static XPathNodePointer |
XPathFinderByCanonical.getCanonicalXPath(DOMNode node,
DOMNode rootNode)
Gets the scored XPath expression candidate for a DOM node.
|
static DOMNode |
DOMNodeUtils.getElementAncestor(DOMNode node) |
static DOMNode |
DOMNodeUtils.getLowestCommonAncestor(DOMNode node,
DOMNode... nodes) |
static DOMNode |
DOMNodeUtils.getLowestCommonAncestor(DOMNode node,
DOMNode... nodes) |
static int |
FinderUtils.getSameNameSiblingPosition(DOMNode node)
Gets the position of a DOM node among its siblings with the same name.
|
static XPathNodePointerRanking |
DOMNodeFinderService.getXPathPointersByAnchor(DOMNode target)
Gets a
XPathNodePointerRanking (sorted set of XPathNodePointer ) for the target node, using anchor
nodes as main criteria for identification. |
static XPathNodePointerRanking |
DOMNodeFinderService.getXPathPointersByAnchor(DOMNode target,
Integer threshold)
Same as
DOMNodeFinderService.getXPathPointersByAnchor(DOMNode) but with a threshold that stops the process
as soon as the first expression above the threshold if found |
static XPathNodePointerRanking |
DOMNodeFinderService.getXPathPointersByAttribute(DOMNode target)
Gets a
XPathNodePointerRanking (sorted set of XPathNodePointer ) for the target node, using
attributes as main criteria for identification. |
static XPathNodePointerRanking |
DOMNodeFinderService.getXPathPointersByAttribute(DOMNode target,
Integer threshold)
Same as
DOMNodeFinderService.getXPathPointersByAttribute(DOMNode) but with a threshold that stops the
process as soon as the first expression above the threshold if found |
static XPathNodePointerRanking |
DOMNodeFinderService.getXPathPointersByPosition(DOMNode target)
Gets a
XPathNodePointerRanking (sorted set of XPathNodePointer ) for the target node, using position
(not canonical xpath) as main criteria for identification. |
static XPathNodePointerRanking |
DOMNodeFinderService.getXPathPointersByPosition(DOMNode target,
Integer threshold)
Same as
DOMNodeFinderService.getXPathPointersByAttribute(DOMNode) but with a threshold that stops the
process as soon as the first expression above the threshold if found |
static XPathNodePointerRanking |
DOMNodeFinderService.getXPathPointersByTextContent(DOMNode target)
Gets a
XPathNodePointerRanking (sorted set of XPathNodePointer ) for the target element, using its
text children nodes as main criteria for identification. |
static XPathNodePointerRanking |
DOMNodeFinderService.getXPathPointersByTextContent(DOMNode node,
Integer threshold)
As
DOMNodeFinderService#getXPathPointersByTextContent(DOMElement) but with a threshold for robusteness |
static XPathNodePointer |
FinderUtils.manageTextNodeIfAny(DOMNode node,
XPathNodePointer candidate) |
static XPathNodePointerRanking |
FinderUtils.manageTextNodeIfAny(DOMNode node,
XPathNodePointerRanking candidateList) |
Modifier and Type | Method and Description |
---|---|
static DOMNode |
DOMNodeUtils.getLowestCommonAncestor(Collection<DOMNode> nodes)
Gets the lowest common ancestor of a list of DOM nodes.
|
Modifier and Type | Method and Description |
---|---|
DOMNode |
WrapperDOMCallbackFactory.wrapNode(Object node) |
Modifier and Type | Method and Description |
---|---|
DOMNode |
MutationDetectionUtils.MyTriple.getParentNode() |
static DOMNode |
MutationDetectionUtils.performAutocompleteIfAny(DOMMutationObserver bodyObserver,
WebBrowser browser) |
DOMNode |
DOMMutationRecord.target() |
Modifier and Type | Method and Description |
---|---|
List<DOMNode> |
DOMMutationRecord.addedNodes() |
List<DOMNode> |
DOMMutationRecord.removedNodes() |
Constructor and Description |
---|
MyTriple(DOMNode node,
String tagName) |
Modifier and Type | Class and Description |
---|---|
class |
DOMElementDecorator |
class |
DOMNodeDecorator |
Modifier and Type | Field and Description |
---|---|
protected DOMNode |
DOMNodeDecorator.decoratedNode |
Modifier and Type | Method and Description |
---|---|
DOMNode |
DOMNodeDecorator.appendChild(DOMNode newChild) |
DOMNode |
DOMNodeDecorator.getFirstChild() |
DOMNode |
DOMNodeDecorator.getLastChild() |
DOMNode |
DOMNodeDecorator.getNextSibling() |
DOMNode |
DOMNodeDecorator.getParentNode() |
DOMNode |
DOMNodeDecorator.getPreviousSibling() |
DOMNode |
DOMNodeDecorator.insertBefore(DOMNode newChild,
DOMNode refChild) |
DOMNode |
DOMNodeDecorator.removeChild(DOMNode child) |
DOMNode |
DOMNodeDecorator.replaceChild(DOMNode newChild,
DOMNode oldChild) |
Modifier and Type | Method and Description |
---|---|
DOMNamedNodeMap<DOMNode> |
DOMNodeDecorator.getAttributes() |
Modifier and Type | Method and Description |
---|---|
DOMNode |
DOMNodeDecorator.appendChild(DOMNode newChild) |
short |
DOMNodeDecorator.compareDocumentPosition(DOMNode other) |
DOMNode |
DOMNodeDecorator.insertBefore(DOMNode newChild,
DOMNode refChild) |
boolean |
DOMNodeDecorator.isDescendant(DOMNode node) |
boolean |
DOMNodeDecorator.isSameNode(DOMNode other) |
DOMNode |
DOMNodeDecorator.removeChild(DOMNode child) |
DOMNode |
DOMNodeDecorator.replaceChild(DOMNode newChild,
DOMNode oldChild) |
Constructor and Description |
---|
DOMNodeDecorator(DOMNode node) |
Modifier and Type | Interface and Description |
---|---|
interface |
XPathNamespace |
Modifier and Type | Method and Description |
---|---|
DOMNode |
DOMXPathResult.getSingleNodeValue() |
DOMNode |
DOMXPathResult.iterateNext() |
DOMNode |
DOMXPathResult.snapshotItem(int index) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.Table<DOMNode,String,List<DOMNode>> |
DOMXPathEvaluator.evaluateBulk(DOMNode context,
String pathToAnchorNodes,
Set<String> contextualAttributeNodes) |
com.google.common.collect.Table<DOMNode,String,List<DOMNode>> |
DOMXPathEvaluator.evaluateBulk(DOMNode context,
String pathToAnchorNodes,
Set<String> contextualAttributeNodes) |
Modifier and Type | Method and Description |
---|---|
DOMXPathNSResolver |
DOMXPathEvaluator.createNSResolver(DOMNode nodeResolver) |
Object |
DOMXPathExpression.evaluate(DOMNode contextNode,
short type,
Object result) |
DOMXPathResult |
DOMXPathEvaluator.evaluate(String expression,
DOMNode contextNode,
DOMXPathNSResolver resolver,
short type,
Object result) |
com.google.common.collect.Table<DOMNode,String,List<DOMNode>> |
DOMXPathEvaluator.evaluateBulk(DOMNode context,
String pathToAnchorNodes,
Set<String> contextualAttributeNodes) |
Modifier and Type | Method and Description |
---|---|
Map<String,DOMNode> |
ObservedInteraction.getFormNodesToObserve()
Maps PMNodeId --> DOMNOde
|
Modifier and Type | Method and Description |
---|---|
static DOMNode |
XPathUtil.getFirstNode(String xpath,
DOMNode contextNode) |
static DOMNode |
XPathUtil.getFirstNode(String xpath,
WebBrowser browser)
Gets the first node returned by an xpath expression, or null if any
|
static DOMNode |
XPathUtil.getUniqueNode(String xpath,
DOMNode contextNode) |
Modifier and Type | Method and Description |
---|---|
static List<DOMNode> |
XPathUtil.getNodes(Iterable<String> xpathExpressions,
WebBrowser browser) |
static List<DOMNode> |
XPathUtil.getNodes(String xpath,
DOMNode contextNode)
Gets the first node returned by an xpath expression, or null if any
|
static List<DOMNode> |
XPathUtil.getNodes(String xpath,
DOMNode node,
WebBrowser browser) |
static List<DOMNode> |
XPathUtil.getNodes(String xpath,
WebBrowser browser)
Gets the first node returned by an xpath expression, or null if any
|
Modifier and Type | Method and Description |
---|---|
String |
JSUtils.asXLM(DOMNode subtree)
can be used to convert a DOM tree into text XML
|
static boolean |
XPathUtil.checkUniqueMatchingPaths(DOMNode from,
DOMNode to,
XPathNodePointerRanking paths) |
static DOMNode |
XPathUtil.getFirstNode(String xpath,
DOMNode contextNode) |
static List<DOMNode> |
XPathUtil.getNodes(String xpath,
DOMNode contextNode)
Gets the first node returned by an xpath expression, or null if any
|
static List<DOMNode> |
XPathUtil.getNodes(String xpath,
DOMNode node,
WebBrowser browser) |
static DOMNode |
XPathUtil.getUniqueNode(String xpath,
DOMNode contextNode) |
static boolean |
XPathUtil.isUniquelyMatching(String xpath,
DOMNode targetNode) |
static int |
XPathUtil.retrieveNodePosition(String xpath,
DOMNode target,
int count)
Gets the position of the selected DOM node by adding a positional predicate to the xpath expression.
|
String |
JSUtils.selectText(DOMNode node)
Selects the text via Selection API https://developer.mozilla.org/en-US/docs/Web/API/Selection If the node is a
textNode it will select its text, otherwise it will create a range selection all its children
|
String |
JSUtils.selectText(DOMNode startRange,
DOMNode endNode)
Selects the text via Selection API https://developer.mozilla.org/en-US/docs/Web/API/Selection
|
static XPathNodePointerRanking |
XPathUtil.uniqueMatchingPaths(DOMNode from,
DOMNode to,
XPathNodePointerRanking paths) |
Copyright © 2020 OXPath Team. All rights reserved.