Browse Source

Added notes on this.

Steve Thielemann 3 weeks ago
parent
commit
d1a74391be
3 changed files with 18 additions and 1 deletions
  1. 16 0
      NOTES.md
  2. 2 0
      chrome-fetch.py
  3. 0 1
      set-bin.sh

+ 16 - 0
NOTES.md

@@ -0,0 +1,16 @@
+
+# Selenium with headless chrome for testing
+
+docker run -it --rm --init selenium
+
+Must run with init, so we can shut it down.
+
+
+# Update the build system, so we can run latest stable!
+
+https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json
+
+# I'll need to have some type of adaptive useragent system, so we're not showing
+Headless Chrome in the useragent.
+
+

+ 2 - 0
chrome-fetch.py

@@ -68,6 +68,8 @@ for g in grab:
     download_file(g)
 
 # Ok, now what needs to be done?
+# run ./set-bin.sh script!
+#
 # unzip, remove chrome-linux64, chromedriver-linux64 directories.
 # pprint(stable)
 # pprint(grab)

+ 0 - 1
set-bin.sh

@@ -14,4 +14,3 @@ rmdir chrome-linux64 chromedriver-linux64
 echo "Ok!  Build the image!"
 
 docker compose build
-