Skip to content

Commit

Permalink
Add new element and method for getting danger warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-susanh committed Feb 12, 2025
1 parent 5c0664c commit cda9a6c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ public boolean isNameFieldEnabled()
return (null == disabledValue) || (!disabledValue.equalsIgnoreCase("true"));
}

public String getErrorText()
{
return elementCache().dangerText.getText();
}

public String getNameExpression()
{
expandPropertiesPanel();
Expand Down Expand Up @@ -378,6 +383,7 @@ public ElementCache()
WebDriverWrapper.sleep(500);
}

protected final WebElement dangerText = Locator.tagWithClass("span", "text-danger").findWhenNeeded(this);
protected final ValidatingInput nameInput = new ValidatingInput(Locator.id("entity-name").findWhenNeeded(propertiesPanel), getDriver());
protected final Input nameExpressionInput = new ValidatingInput(Locator.id("entity-nameExpression").findWhenNeeded(propertiesPanel), getDriver());
protected final Input descriptionInput = new ValidatingInput(Locator.id("entity-description").findWhenNeeded(propertiesPanel), getDriver());
Expand Down

0 comments on commit cda9a6c

Please sign in to comment.