-
Notifications
You must be signed in to change notification settings - Fork 99
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
validate HTML code for a page #302
Comments
I do believe that a HTML validating fixture might be nice. Maybe you could make a PR to add this functionality to HtmlFixture? I don't believe HTML validation should be a feature of BrowserTest. Browser's don't warn a user if HTML is not valid: BrowserTest is about validating whether a site can accomplish the functional goals. If the HTML is invalid but works in the browser test should be green ;-) |
Side note: Selenium (or the webdriver) injects an invalid tag in the HTML, which is always reported by the validator with a message: "vAttribute \u201Cwebdriver\u201D not allowed on element \u201Chtml\u201D in this context." This feature will have to come with an easy way to ignore common errors like this, despite errors being defined by their message text, which contains special characters. |
I'm curious to find out where that invalid HTML tag comes from? I don't see it on my mac with chrome when I run |
The nu HTML validator has a respectable embedded HTML validation library.
This can be made into an inline Browser Test command:
or
Or it could be made into a completely different Fixture that 'knows' where savePageSource() saves its files, or even can decompose the link returned by savePageSource() to handle duplicate name resolution.
Thoughts?
The text was updated successfully, but these errors were encountered: