Skip to content

Commit

Permalink
add back string matching to class names
Browse files Browse the repository at this point in the history
  • Loading branch information
saharmehrpour committed Nov 2, 2023
1 parent 789ed4f commit c967a29
Show file tree
Hide file tree
Showing 4 changed files with 709 additions and 679 deletions.
1 change: 1 addition & 0 deletions rulePadGrammar.g4
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ classNames

classNameCondition
: combinatorialWords SPACE
| words SPACE
;

/*
Expand Down
5 changes: 5 additions & 0 deletions src/core/generateXPath.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,11 @@ class GenerateXPath {
if (!isConstraintCondition) this.XPathQ += "[" + messageID + tempText + "]";
this.XPathC += "[" + messageID + tempText + "]";
}
else if (nodeChildren[i].getChild(j).constructor.name === "WordsContext") {
tempText = this.wordsContextTraversal(nodeChildren[i].getChild(j));
if (!isConstraintCondition) this.XPathQ += "[" + tempText + "]";
this.XPathC += "[" + tempText + "]";
}
}
}
}
Expand Down
Loading

0 comments on commit c967a29

Please sign in to comment.