Skip to content

Commit

Permalink
Fix rank default values = 0 in getFromHtml control usage
Browse files Browse the repository at this point in the history
  • Loading branch information
bcivel committed Sep 12, 2024
1 parent a9632ac commit 584ea7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@ public MessageEvent verifyElementXXX(String control, TestCaseExecution tCExecuti
case Application.TYPE_APK:
case Application.TYPE_IPA:

actual = webdriverService.getValueFromHTML(tCExecution.getSession(), identifier, false, 1);
actual = webdriverService.getValueFromHTML(tCExecution.getSession(), identifier, false, 0);
// In case of null actual value then we alert user
if (actual == null) {
mes = new MessageEvent(MessageEventEnum.CONTROL_FAILED_ELEMENT_NULL);
Expand Down Expand Up @@ -1457,7 +1457,7 @@ private MessageEvent verifyElementTextMatchRegex(TestCaseExecution tCExecution,
|| Application.TYPE_APK.equalsIgnoreCase(applicationType)
|| Application.TYPE_IPA.equalsIgnoreCase(applicationType)) {

pathContent = this.webdriverService.getValueFromHTML(tCExecution.getSession(), identifier, false, 1);
pathContent = this.webdriverService.getValueFromHTML(tCExecution.getSession(), identifier, false, 0);
} else if (Application.TYPE_SRV.equalsIgnoreCase(applicationType)) {
if (tCExecution.getLastServiceCalled() != null) {
String responseBody = tCExecution.getLastServiceCalled().getResponseHTTPBody();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ private TestCaseExecutionData property_getFromHtml(TestCaseExecutionData testCas
valueFromHTML = this.webdriverService.getAttributeFromHtml(tCExecution.getSession(), identifier, testCaseExecutionData.getValue2(), TestCaseCountryProperties.NATURE_RANDOM.equals(testCaseExecutionData.getNature()), testCaseExecutionData.getRank() );
break;
default :
valueFromHTML = this.webdriverService.getValueFromHTML(tCExecution.getSession(), identifier, false, 1);
valueFromHTML = this.webdriverService.getValueFromHTML(tCExecution.getSession(), identifier, false, 0);
}

if (valueFromHTML != null) {
Expand Down

0 comments on commit 584ea7a

Please sign in to comment.