-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add ability to get console logs (#434)
[ADDON-73881](https://splunk.atlassian.net/browse/ADDON-73881) As a smartx enjoyer, I want to get access to the browser console logs to fail my tests if there are JS errors. ## Changes - Add capability to track logs in Chrome - Add a helper to access an array of logs ## Example of usage ```python severe_console_logs = get_browser_logs(ucc_smartx_selenium_helper.browser, log_level=LogLevel.SEVERE, log_source=LogSource.CONSOLE_API) assert not severe_console_logs, f"Unexpected severe console logs found: {severe_console_logs}" ``` Currently, this feature is only supported with the Chrome browser. Analysis on adding support for other browser: https://splunk.atlassian.net/browse/ADDON-73881?focusedCommentId=15449369 --------- Co-authored-by: Darshan Varasani <[email protected]>
- Loading branch information
1 parent
385ca1f
commit df8b8b2
Showing
3 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters