Skip to main content

How to escape special characters in Designer

What do we do when we encounter a special character and we have to assert it in a designer script ?


Lets take the below Example:

User navigates to the Apple website and tries to do a assert on iphone page and finds that the iphone 7 has special character " just before 7. So the user now has to assert iPhone"7 which contains a special character just before 7.

We can "\" to escape the special character and run the script successfully.


VYvRyqFjstu0oJCA-b5d9416e81f7.png

For characters that are usually treated specially, '\' indicates that the next character is not special and should be interpreted literally.


Last updated: June 26, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Last updated: October 16, 2026