From 7786ac66ceb34c46f0e02a9dbce8bed74fdb117a Mon Sep 17 00:00:00 2001 From: Diego Molina Date: Thu, 16 May 2024 10:51:16 -0700 Subject: [PATCH] Adding logging to debug --- examples/python/tests/drivers/test_remote_webdriver.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/python/tests/drivers/test_remote_webdriver.py b/examples/python/tests/drivers/test_remote_webdriver.py index b0b5a61ef7e6..f2c7a07d9383 100644 --- a/examples/python/tests/drivers/test_remote_webdriver.py +++ b/examples/python/tests/drivers/test_remote_webdriver.py @@ -1,3 +1,4 @@ +import logging import os from selenium import webdriver @@ -7,6 +8,8 @@ def test_start_remote(server): + logger = logging.getLogger('selenium') + logger.setLevel(logging.DEBUG) options = webdriver.ChromeOptions() driver = webdriver.Remote(command_executor=server, options=options) @@ -15,6 +18,8 @@ def test_start_remote(server): def test_uploads(server): + logger = logging.getLogger('selenium') + logger.setLevel(logging.DEBUG) options = webdriver.ChromeOptions() driver = webdriver.Remote(command_executor=server, options=options) @@ -34,6 +39,8 @@ def test_uploads(server): def test_downloads(server, temp_dir): + logger = logging.getLogger('selenium') + logger.setLevel(logging.DEBUG) options = webdriver.ChromeOptions() options.enable_downloads = True driver = webdriver.Remote(command_executor=server, options=options)