How to handle both Upper and Lower case for Xpath assertions in Readyapi
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2021
12:22 PM
08-31-2021
12:22 PM
How to handle both Upper and Lower case for Xpath assertions in Readyapi
Is there is a Function in groovy script to handle both lower case and uppercase
The below function is for upper case
${="${Run TestCase_Create Client Setup#AddressLine1_PHYS}".toUpperCase()}
The below function is for lower case
${="${Run TestCase_Create Client Setup#AddressLine1_PHYS}".toLowerCase()}
Similarly i want a function to manage both upper and lower case.
Solved! Go to Solution.
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2021
03:02 AM
09-01-2021
03:02 AM
Please check below for xpath
https://stackoverflow.com/questions/2893551/case-insensitive-matching-in-xpath
if you want check the string value then use "equalsIgnoreCase". Please see below example
https://www.tutorialspoint.com/groovy/groovy_equalsignorecase.htm
Regards,
Rao.
https://stackoverflow.com/questions/2893551/case-insensitive-matching-in-xpath
if you want check the string value then use "equalsIgnoreCase". Please see below example
https://www.tutorialspoint.com/groovy/groovy_equalsignorecase.htm
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2021
05:36 AM
09-09-2021
05:36 AM
