Skip to content

Commit ef81a46

Browse files
SWAG ExperimentsSWAG Experiments
authored andcommitted
MacOS updates
1 parent f23631d commit ef81a46

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export DISPLAY=:99 && fluxbox -log fluxbox.log &
4747
```
4848

4949
### Desktop Browsers (MacOS)
50-
- Have to be run on a real MacOS device, we used version 17.3 and 17.5 (adjust the browser configuration in `desktop_selenium.py` if using another version).
50+
- Have to be run on a real MacOS device, we used version 17.3, 17.5, and 18.2 (adjust the browser configuration in `desktop_selenium.py` if using another version).
5151
- On MacOS the `setup.bash` script does not work. Instead manually install [poetry](https://python-poetry.org/docs/#installing-with-the-official-installer) and run `poetry install` in the `_hp` directory and append the entries from [host-config.txt](_hp/host-config.txt) to `/etc/hosts`.
5252
- Make sure that the MacOS device can reach the Header Testing server. (Alternatively it could also work to run the header testing server and the database locally on the MacOS device).
5353
- To be able to use Selenium with Safari, one needs to activate remote automation. In Safari: develop -> developer settings -> developer settings -> allow remote automation.
@@ -61,6 +61,7 @@ export DISPLAY=:99 && fluxbox -log fluxbox.log &
6161
- On the MacOS device:
6262
- Run the basic tests: `for i in {1..5}; do poetry run python desktop_selenium.py --num_browsers 1 --page_runner_json <basic-test-json> --timeout_task 1000; done`
6363
- Run the parsing tests: `for i in {1..5}; do poetry run python desktop_selenium.py --num_browsers 1 --page_runner_json <parsing-test-json> --timeout_task 10000; done`
64+
- Add `--new_browsers` for running on 18.2
6465
- It can happen that not all tests recorded 5 results, thus run the following to ensure that all tests are executed at least 5 times:
6566
- For the basic tests: `poetry run python create_repeat.py --selection_str "\"Response\".resp_type = 'basic' and \"Browser\".os != 'Android 11'"` and `poetry run python desktop_selenium.py --num_browsers 1 --run_mode repeat --timeout_task 10000`
6667
- For the parsing tests: `poetry run python create_repeat.py --selection_str "\"Response\".resp_type = 'parsing' and \"Browser\".os != 'Android 11'"` and `poetry run python desktop_selenium.py --num_browsers 1 --run_mode repeat --timeout_task 10000`

_hp/hp/tools/crawler/desktop_selenium.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -403,16 +403,16 @@ def unraisable_hook(unraisable):
403403
("brave", "121", "/home/ubuntu/brave-versions/v1.62.156/brave-browser",
404404
["--headless=new"], get_or_create_browser("brave", "v1.62.156 (121.0.6167.139)", "Ubuntu 22.04", "headless-new", "selenium", "")),
405405
]
406-
if args.new_browsers:
407-
config = [
408-
# Released 2024-11-06
409-
("chrome", "131", None, ["--headless=new"], get_or_create_browser("chrome", "131", "Ubuntu 22.04", "headless-new", "selenium", "")),
410-
# Released 2024-11-26
411-
("firefox", "133", None, ["-headless"], get_or_create_browser("firefox", "133", "Ubuntu 22.04", "headless", "selenium", "")),
412-
# Released 2024-12-11
413-
("brave", "131", "/home/ubuntu/brave-versions/v1.73.101/brave-browser",
414-
["--headless=new"], get_or_create_browser("brave", "v1.73.101 (Chromium 131.0.6778.139)", "Ubuntu 22.04", "headless-new", "selenium", "")),
415-
]
406+
if args.new_browsers:
407+
config = [
408+
# Released 2024-11-06
409+
("chrome", "131", None, ["--headless=new"], get_or_create_browser("chrome", "131", "Ubuntu 22.04", "headless-new", "selenium", "")),
410+
# Released 2024-11-26
411+
("firefox", "133", None, ["-headless"], get_or_create_browser("firefox", "133", "Ubuntu 22.04", "headless", "selenium", "")),
412+
# Released 2024-12-11
413+
("brave", "131", "/home/ubuntu/brave-versions/v1.73.101/brave-browser",
414+
["--headless=new"], get_or_create_browser("brave", "v1.73.101 (Chromium 131.0.6778.139)", "Ubuntu 22.04", "headless-new", "selenium", "")),
415+
]
416416
if args.debug_browsers:
417417
config = [
418418
# Configure browsers to use for debug runs manually here

0 commit comments

Comments
 (0)