Chrome driver for Selenium stuck in grey screen on bet365 site Chrome driver for Selenium stuck in grey screen on bet365 site selenium selenium

Chrome driver for Selenium stuck in grey screen on bet365 site


I executed your usecase with a couple of tweaks and faced the same consequences. Here are the execution details:

  • Code Block [Python]:

    from selenium import webdriveroptions = webdriver.ChromeOptions() options.add_argument("start-maximized")options.add_experimental_option("excludeSwitches", ["enable-automation"])options.add_experimental_option('useAutomationExtension', False)driver = webdriver.Chrome(options=options, executable_path=r'C:\WebDrivers\chromedriver.exe')driver.get('https://www.bet365.it/')
  • Browser Snapshot:

bet365


Deep Dive

When I checked the Terms and conditions it is clearly mentioned that:

  1. Other

6.1 bet365 actively monitors traffic to and from its Site. Bet365 reserves the right to block access to the Site, at its discretion,should it encounter any evidence of automated or robotized gameactivity.


Conclusion

It seems Selenium driven ChromeDriver initiated based browsing context is getting detected and the navigation is blocked.


from time import sleepfrom selenium import webdriverfrom selenium.webdriver.chrome.options import Optionschrome_options = Options()# chrome_options.add_argument("--headless")chrome_options.add_argument('--start-maximized')driver = webdriver.Chrome(options=chrome_options, executable_path=r"chromedriver.exe")driver.execute_cdp_cmd("Page.addScriptToEvaluateOnNewDocument", {"source": """Object.defineProperty(navigator, 'webdriver', {get: () => undefined})"""})url = 'https://www.bet365.com/#/IP/B1'driver.get(url)sleep(1)