MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / getResolvedTarget

Method getResolvedTarget

src/main/java/org/htmlunit/html/HtmlPage.java:745–757  ·  view source on GitHub ↗

Given a target attribute value, resolve the target using a base target for the page. @param elementTarget the target specified as an attribute of the element @return the resolved target to use for the element

(final String elementTarget)

Source from the content-addressed store, hash-verified

743 * @return the resolved target to use for the element
744 */
745 public String getResolvedTarget(final String elementTarget) {
746 final String resolvedTarget;
747 if (base_ == null) {
748 resolvedTarget = elementTarget;
749 }
750 else if (elementTarget != null && !elementTarget.isEmpty()) {
751 resolvedTarget = elementTarget;
752 }
753 else {
754 resolvedTarget = base_.getTargetAttribute();
755 }
756 return resolvedTarget;
757 }
758
759 /**
760 * Returns a list of ids (strings) that correspond to the tabbable elements

Callers 3

doClickStateUpdateMethod · 0.95
doClickStateUpdateMethod · 0.95
submitMethod · 0.95

Calls 2

isEmptyMethod · 0.65
getTargetAttributeMethod · 0.45

Tested by

no test coverage detected