Headless!

This commit is contained in:
John Wiseman 2020-03-02 22:59:14 -08:00
parent 70474938ac
commit e06f82a73f

View File

@ -47,7 +47,7 @@
(log-info "Taking screenshot of aircraft %s at %s %s" icao lat lon) (log-info "Taking screenshot of aircraft %s at %s %s" icao lat lon)
(let [icao-selector (gstring/format "//td[contains(., '%s')]" (let [icao-selector (gstring/format "//td[contains(., '%s')]"
(string/upper-case icao)) (string/upper-case icao))
launch-options {:headless (get options :headless? false) launch-options {:headless (get options :headless? true)
:defaultViewport (get options :viewport {:width 1600 :defaultViewport (get options :viewport {:width 1600
:height 800})} :height 800})}
took-screenshot?_ (atom false)] took-screenshot?_ (atom false)]