Skip to content
Merged
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 @@ -189,8 +189,7 @@ private void configureGlobalThrottling(String labelRoot, int numberOfPairs, int
boolean buttonFound = false;

for (HtmlButton button : buttons) {
if (button.getTextContent().equals(buttonText)) {
buttonFound = true;
if (button.asNormalizedText().equals(buttonText)) {
button.click();

HtmlInput input = form.getInputByName("_.categoryName");
Expand All @@ -201,9 +200,8 @@ private void configureGlobalThrottling(String labelRoot, int numberOfPairs, int

buttons = HtmlUnitHelper.getButtonsByXPath(form, parentXPath + buttonsXPath);
buttonText = "Add Maximum Per Labeled Node";
buttonFound = false;
for (HtmlButton deeperButton : buttons) {
if (deeperButton.getTextContent().equals(buttonText)) {
if (deeperButton.asNormalizedText().equals(buttonText)) {
buttonFound = true;
for (int i = 0; i < numberOfPairs; i++) {
List<HtmlInput> inputs;
Expand Down Expand Up @@ -344,7 +342,7 @@ private String configureLogger() throws IOException {
boolean buttonFound = false;

for (HtmlButton button : buttons) {
if (button.getTextContent().equals(buttonText)) {
if (button.asNormalizedText().equals(buttonText)) {
buttonFound = true;
button.click();

Expand Down
Loading