Skip to content

đŸ•ĩī¸ The HTML Inspector

The HTML Inspector đŸ•ĩī¸

đŸ•ĩī¸ HTML Inspector provides useful info about a web page.

đŸ•ĩī¸ (Based on: github.com/philipwalton/html-inspector)

đŸ•ĩī¸ Example: examples/test_inspect_html.py (Chromium-only)

from seleniumbase import BaseCase
BaseCase.main(__name__, __file__)

class HtmlInspectorTests(BaseCase):
    def test_html_inspector(self):
        self.open("https://xkcd.com/1144/")
        self.inspect_html()

pytest test_inspect_html.py
============== test session starts ==============

* HTML Inspection Results: https://xkcd.com/1144/
⚠ī¸  'property' is not a valid attribute of the <meta> element.
⚠ī¸  Do not use <div> or <span> elements without any attributes.
⚠ī¸  'srcset' is not a valid attribute of the <img> element.
⚠ī¸  The 'border' attribute is no longer valid on the <img> element.
⚠ī¸  The <center> element is obsolete.
⚠ī¸  The id 'comicLinks' appears more than once in the document.
* (See the Console output for details!)