Skip to content

Commit e55ded2

Browse files
AshishAshish
authored andcommitted
Version changed to 2.1
1 parent e8d8671 commit e55ded2

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

Datalib/src/main/java/com/ing/datalib/settings/PropUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private static String escapeSpecialCharacters(String input) {
7575
sb.append("\\t");
7676
break;
7777
case ' ':
78-
sb.append("\\");
78+
sb.append("\\ ");
7979
break;
8080
default:
8181
if (c > 127) {

IDE/src/main/java/com/ing/ide/main/playwrightrecording/PlaywrightRecordingParser.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,10 @@ public String getAction(String line) {
367367
case "containsText":
368368
actionType = "assertElementContainsText";
369369
break;
370+
case "hasValue":
371+
actionType = "assertElementValueMatches";
372+
break;
373+
370374

371375
}
372376
} else {
@@ -397,29 +401,21 @@ public String getInput(String line) {
397401
String action = ((line.split("\\)\\.")[length - 1])).split("\\(")[0];
398402
switch (action) {
399403
case "click":
400-
input = "";
401-
break;
402-
case "fill":
403-
input = "@" + ((line.split("\\)\\.")[length - 1])).split("\\(")[1].split("\"")[1];
404-
break;
405-
case "selectOption":
406-
input = "@" + ((line.split("\\)\\.")[length - 1])).split("\\(")[1].split("\"")[1];
407-
break;
408-
case "check":
409-
input = "";
410-
break;
411-
case "press":
412-
input = "@" + ((line.split("\\)\\.")[length - 1])).split("\\(")[1].split("\"")[1];
413-
break;
404+
case "check":
414405
case "isEmpty":
406+
case "isVisible":
415407
input = "";
416408
break;
417-
case "isVisible":
418-
input = "";
419-
break;
409+
410+
case "press":
411+
case "selectOption":
412+
case "fill":
413+
case "hasValue":
420414
case "containsText":
421415
input = "@" + ((line.split("\\)\\.")[length - 1])).split("\\(")[1].split("\"")[1];
422416
break;
417+
418+
423419
}
424420
}
425421
if (line.contains(".navigate(")) {
@@ -453,7 +449,11 @@ public void attributeInitialization(String stringLine) {
453449
line = stringLine.split("\\.isEmpty\\(")[0];
454450
} else if (stringLine.contains(")).containsText(")) {
455451
stringLine = stringLine.replace("\\)\\)\\.containsText(", "\\)\\.containsText\\(");
456-
line = stringLine.split("\\.isEmpty\\(")[0];
452+
line = stringLine.split("\\.containsText\\(")[0];
453+
}
454+
else if (stringLine.contains(")).hasValue(")) {
455+
stringLine = stringLine.replace("\\)\\)\\.hasValue(", "\\)\\.hasValue\\(");
456+
line = stringLine.split("\\.hasValue\\(")[0];
457457
}
458458
}
459459
if (line.contains("frameLocator(")) {

Resources/Engine/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<modelVersion>4.0.0</modelVersion>
33
<groupId>ingenious-playwright</groupId>
44
<artifactId>ingenious-engine</artifactId>
5-
<version>2.0</version>
5+
<version>2.1</version>
66
<properties>
77
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
88
<playwright.version>LATEST</playwright.version>

0 commit comments

Comments
 (0)