SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
30.18k stars 8.11k forks source link

Page http://www.bet365.com never loads -- spins forever #9069

Closed emiliavanderwerf closed 3 years ago

emiliavanderwerf commented 3 years ago

🐛 Bug Report

Page never loads.

To Reproduce

import { Driver, Options, ServiceBuilder } from 'selenium-webdriver/chrome';
import { DriverService } from 'selenium-webdriver/remote';

(async function example() {
    let options: Options = new Options();
    options.setChromeBinaryPath("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe");
    options.setProxy(null);

    let driver: Driver = null;
    try {
        driver = Driver.createSession(options);

        await driver.get('http://www.bet365.com'); // <--- this site fails to load

    } catch (ex) {
        console.log(ex);
    }
    finally {
        await driver.quit();
    }
})();

Result: See page spinning forever image

Expected Behavior

The behavior should be the same as when I launch the browser manually and navigate to the URL http://www.bet365.com - the page should load.

image

Environment

OS: Windows 10 OS Version 1909 (Build 18363.1316) Browser: Chrome Browser version: 87.0.4280.141 (Official Build) (64-bit) (cohort: Stable) JavaScript: V8 8.7.220.31 Flash: 32.0.0.465

diemol commented 3 years ago

@emiliavanderwerf , Bet365 blocks WebDriver and other types of tools that tries to access their website in a "non-human" way. This stackoverflow entry can give you more detail.