Skip to content

Commit

Permalink
test with print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
chejennifer committed Jul 12, 2024
1 parent eb51cb0 commit c205153
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion server/webdriver/base_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@ def create_driver(preferences=None):
chrome_options.add_argument('--hide-scrollbars')
if preferences:
chrome_options.add_experimental_option("prefs", preferences)
driver = webdriver.Chrome(options=chrome_options)
try:
print("before creating driver")
driver = webdriver.Chrome(options=chrome_options)
print("after creating driver")
except Exception as e:
print("caught exception")
print(str(e))


# Set a reliable window size for all tests (can be overwritten though)
driver.set_window_size(DEFAULT_WIDTH, DEFAULT_HEIGHT)
return driver

0 comments on commit c205153

Please sign in to comment.