Skip to content
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

'I press' step does not escape single quotes within text #137

Open
ThrawnCA opened this issue Jun 20, 2023 · 0 comments
Open

'I press' step does not escape single quotes within text #137

ThrawnCA opened this issue Jun 20, 2023 · 0 comments

Comments

@ThrawnCA
Copy link

There is logic in behaving/web/steps/links.py to handle single quotes (which will disrupt XPath) within the specified link text, but this logic is not present in the 'I press "{name"}' step in behaving/web/steps/forms.py, so usage like

I press "Dave's Books"

will fail with "Element not found".

ThrawnCA added a commit to qld-gov-au/ckanext-data-qld that referenced this issue Jun 20, 2023
- There is a bug in Behaving that breaks this step when single quotes are used.
Raised ggozad/behaving#137
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant