From 74946bb627084726d2a81a7fe95bd88778aa68d9 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sat, 26 Mar 2022 10:15:26 +0100 Subject: [PATCH] Updated Fetching pages with WebDriver (markdown) --- Fetching-pages-with-WebDriver.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Fetching-pages-with-WebDriver.md b/Fetching-pages-with-WebDriver.md index 5df6ee1..3d4617d 100644 --- a/Fetching-pages-with-WebDriver.md +++ b/Fetching-pages-with-WebDriver.md @@ -50,7 +50,19 @@ Known to work with RaspberryPi-4 Use the `seleniarm/standalone-chromium:4.0.0-20 ## Microsoft Windows -@todo - fill this in +Tested with Chrome version 99.0 + +1. Install Chrome Web Browser https://www.google.com/chrome/ +2. Install the correct Chromium WebDriver https://chromedriver.chromium.org/downloads for the version of Chrome you installed. +3. Unpack and run the WebDriver, this will talk/drive Chrome to get the results +![image](https://user-images.githubusercontent.com/275001/160232808-9796464b-197d-4b09-8e31-61c43ab618da.png) +4. Set system wide or `cmd` level environmental variable for Changedetection.io to know where to find the ChromeDriver, from the commandline `set WEBDRIVER_URL=http://localhost:9515` +5. Run the app from the same window using the `changedetection.py` +![image](https://user-images.githubusercontent.com/275001/160232891-51c69279-8e2e-40d7-a0ef-56f495cf2bdf.png) +6. Don't forget to enable chrome fetching for those sites that require Javascript, or any site you prefer to fetch via your Chrome, the user interface should show "`http://localhost:9515`" if you set the environmental variable correctly. +![image](https://user-images.githubusercontent.com/275001/160232926-70fee16f-634b-42cd-86c3-0ffaa5a0aa22.png) + + ## There's a few things left todo