I am a complete novice Using Katalon (and am not a programmer by training). I have a number of scripts developed in Selenium IDE that I would like to move to Katalon. My scripts use a lot of assert Text commands which use * in the values to capture portions of the text strings.
The command generated by Katalon from the Selenium IDE command does not work. I would appreciate any thoughts or recommendations on how to fix this.
Thanks … details below.
Original Selenium IDE
assertText id=DisclaimerText \*In proceeding and accessing\*
Katalon Recorder – Export as script
assertTrue(selenium.getText(" id=DisclaimerText").matches("^\[\\\s\\\S\\\*In proceeding and accessing\[\\\s\\\S\]\*$"));
Katalon Studio
assertTrue(selenium.getText(" id=DisclaimerText").matches("^\[\\\s\\\S\\\*In proceeding and accessing\[\\\s\\\S\]\*$"));
Error Message:
Multiple markers at this line
- illegal string body character after dollar sign; solution
either escape a literal dollar sign"/5" or bracket the value expression “${5}”
@ line 36, column 57
- implements groovy.lang.Script.run