Closed emiliavanderwerf closed 3 years ago
Page never loads.
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
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.
http://www.bet365.com
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
@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.
🐛 Bug Report
Page never loads.
To Reproduce
Result: See page spinning forever
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.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