-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hover with XPath (can single quotes be used in XPath?) #306
Comments
Hey @stevzie try using double quotes -
The flow samples and the tip under here - https://github.com/kelaberetiv/TagUI#steps-description mentions this but may be easy to miss. The convention is chosen so that users can use single quotes to form dynamic XPaths with their variables, eg by user '+variable_name+' or `variable_name` in their element identifiers. |
Forgot to copy @Aussiroth who is now maintaining TagUI for AI Singapore - |
hello @kensoh i had a problem with single quote but i finally have a solution... if anybody want to put a single quote on a string you need to put a back slash behind it. example: var1 = single quote + \ + single quote + STRING + \ + single quote + single quote type [element] as '+var1+' so this write 'STRING' on the element input text |
cool stuff thanks @fez226 fo sharing! yes I normally recommend using double quotes to keep it syntactically correct but yes you can use \ to escape the single quote character in XPath string. also, now TagUI supports backticks to denote variable, so your example step can be written as
|
I saw the duplicated question here - #1171 (comment) and will reply there |
Can anyone explain why the following does not work:
I receive:
SyntaxError: Expected token ')'
The XPath statement works correctly in the Chrome console.
The text was updated successfully, but these errors were encountered: