-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
enhancementMaking things betterMaking things better
Description
Replace and/or simplify default chromedriver error messages with cleaner error messages as needed.
Here's an example of an error that occurs when closing the browser in the middle of a test run. Clearly, the only important part of this error is the part where it tells you that the browser window is closed. The rest of it is unnecessary fluff that takes up valuable space in the console output. Long error messages like this should be simplified when possible. This appears to be a new issue with Selenium 4.0.0, which SeleniumBase started using in version 2.0.0 for Python versions 3.7 and newer.
E selenium.common.exceptions.NoSuchWindowException: Message: no such window: target window already closed
E from unknown error: web view not found
E (Session info: chrome=95.0.4638.69)
E Stacktrace:
E 0 chromedriver 0x0000000108ca0c99 __gxx_personality_v0 + 579209
E 1 chromedriver 0x0000000108c2c5f3 __gxx_personality_v0 + 102371
E 2 chromedriver 0x00000001087f2288 chromedriver + 172680
E 3 chromedriver 0x00000001087d3164 chromedriver + 45412
E 4 chromedriver 0x0000000108847c3c chromedriver + 523324
E 5 chromedriver 0x000000010885650f chromedriver + 582927
E 6 chromedriver 0x0000000108844693 chromedriver + 509587
E 7 chromedriver 0x000000010881ab7e chromedriver + 338814
E 8 chromedriver 0x000000010881bea5 chromedriver + 343717
E 9 chromedriver 0x0000000108c5c77f __gxx_personality_v0 + 299375
E 10 chromedriver 0x0000000108c7368a __gxx_personality_v0 + 393338
E 11 chromedriver 0x0000000108c798eb __gxx_personality_v0 + 418523
E 12 chromedriver 0x0000000108c74a2a __gxx_personality_v0 + 398362
E 13 chromedriver 0x0000000108c5134c __gxx_personality_v0 + 253244
E 14 chromedriver 0x0000000108c90c48 __gxx_personality_v0 + 513592
E 15 chromedriver 0x0000000108c90dd1 __gxx_personality_v0 + 513985
E 16 chromedriver 0x0000000108ca80c8 __gxx_personality_v0 + 608952
E 17 libsystem_pthread.dylib 0x00007fff7df522eb _pthread_body + 126
E 18 libsystem_pthread.dylib 0x00007fff7df55249 _pthread_start + 66
E 19 libsystem_pthread.dylib 0x00007fff7df5140d thread_start + 13
..../site-packages/selenium/webdriver/remote/errorhandler.py:243: NoSuchWindowException
Metadata
Metadata
Assignees
Labels
enhancementMaking things betterMaking things better