Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,8 @@ Optional<WebElement> optionalWarningAlert()

public final WebElement helpTarget(String divLabelText)
{
return Locator.xpath(String.format("//span[text()='%s']//div[@class='overlay-trigger']", divLabelText)).findWhenNeeded(this);
String element = getThis().getClass().getSimpleName().contains("SampleType")? "div" : "span";
return Locator.xpath(String.format("//%s[text()='%s']//div[@class='overlay-trigger']", element, divLabelText)).findWhenNeeded(this);
}

// Tool tips exist on the page, outside the scope of the domainDesigner, so scope the search accordingly.
Expand Down
Loading