Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
WillCaton2350 authored Jan 10, 2025
1 parent 748c151 commit 5465a2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Python-Rumble-Bot-Final-Bot/bot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ def __init__(self):
def start_driver(self):
self.driver = Driver(
uc=True,incognito=True,
no_sandbox=True,headless=True)
no_sandbox=True,headless=False
)
user_agent = useragents.ua.random
self.driver.execute_cdp_cmd(
f"Network.setUserAgentOverride",
Expand All @@ -40,8 +41,7 @@ def start_browser(self):
if err:
logging.error(f'NoSuchElementException: {err}')
except WebDriverException as err:
logging.error(err.msg)

logging.error(f'ISSUE::err::WebDriver_Exception ::: {err.msg}')

def close_browser(self):
self.driver.quit()

0 comments on commit 5465a2c

Please sign in to comment.