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

Implemented a new ZestAssignment which can filter the parsed DOM by e… #117

Merged
merged 1 commit into from
Sep 18, 2017

Conversation

denniskniep
Copy link
Member

…lement or attributes and select the content of an element or the value of an attribute

@denniskniep
Copy link
Member Author

The use case for this occurred in ZAP. I would like to get the value of the action attribute of the second form element.
Beyond this requirement I added some further useful ways of filtering and selecting elements and attributes in the DOM.

@denniskniep denniskniep force-pushed the feature/form_assignments branch 3 times, most recently from 50ed09c to a4c201f Compare August 15, 2017 20:47
@denniskniep denniskniep force-pushed the feature/form_assignments branch 2 times, most recently from c0feda9 to dd481b0 Compare August 15, 2017 21:37
Copy link
Member

@thc202 thc202 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind adding a de/serialisation test (like the one in ZestAssignStringUnitTest), and check that the assign still works?

@denniskniep
Copy link
Member Author

@thc202: pushed your improvements
but tested only with wrong regex. What is a possible wrong flag? Test is always green?!

@thc202
Copy link
Member

thc202 commented Sep 15, 2017

Sorry, I was mislead by the JavaDoc of Pattern.compile which mentions that an exception can be thrown if the flags are wrong but looking at the implementation there's no actual check.

…lement or attributes and select the content of an element or the value of an attribute
@thc202
Copy link
Member

thc202 commented Sep 18, 2017

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants