diff --git a/help_docs/html_inspector.md b/help_docs/html_inspector.md index a3fb7d57..c7b87a0a 100644 --- a/help_docs/html_inspector.md +++ b/help_docs/html_inspector.md @@ -28,8 +28,8 @@ pytest test_inspect_html.py ⚠️ 'property' is not a valid attribute of the element. ⚠️ Do not use
or elements without any attributes. ⚠️ 'srcset' is not a valid attribute of the element. -⚠️ The 'border' attribute is no longer valid on the element and should not be used. -⚠️ The
element is obsolete and should not be used. +⚠️ The 'border' attribute is no longer valid on the element. +⚠️ The
element is obsolete. ⚠️ The id 'comicLinks' appears more than once in the document. * (See the Console output for details!) ``` diff --git a/seleniumbase/fixtures/base_case.py b/seleniumbase/fixtures/base_case.py index c32021b1..64372d2e 100644 --- a/seleniumbase/fixtures/base_case.py +++ b/seleniumbase/fixtures/base_case.py @@ -7127,9 +7127,15 @@ class BaseCase(unittest.TestCase): if "0:6053 " in message: message = message.split("0:6053")[1] message = message.replace("\\u003C", "<") + message = message.replace(" and should not be used", "") if message.startswith(' "') and message.count('"') == 2: message = message.split('"')[1] - message = "⚠️ " + message + if "but not found in any stylesheet" in message: + continue + if not is_windows: + message = "⚠️ " + message + else: + message = "!-> " + message # CMD prompt compatibility if messenger_library not in message: if message not in results: results.append(message)