I use the Get action to assign the innerTest of an element to a variable. I then validate that the variable value exists or compares to or with the innerTest of another element. I have done this successfully.
e.g. Get Value InnerText $varInnerText RepositoryItem1
Validate AttributeEquals $varInnerText RepositoryItem2
However, I have a case where the first element innerText is $113.00* and the 2nd element innertext is $113.00. The variable and the second element innertext are different and will not equal each other because of the * character on the end of the string varable. I was trying to use Regular Expression options to have the string variable not contain the * character. Is this possible? I am trying to avoid using a Code actio or converting the Recorded Module to a Code Module to ammend the string valiable. Can you suggest how I might do this, with or without use of RegExp?
Ask general questions here.
2 posts • Page 1 of 1
- Support Team
- Site Admin
- Posts: 12169
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
I guess the following RegEx should do the trick:I was trying to use Regular Expression options to have the string variable not contain the * character. Is this possible?
Please let me know if that helps.
Code: Select all