Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Cannot work in chrome headless browser #95

Open
141801 opened this issue Jan 9, 2019 · 2 comments
Open

Cannot work in chrome headless browser #95

141801 opened this issue Jan 9, 2019 · 2 comments

Comments

@141801
Copy link

141801 commented Jan 9, 2019

from selenium import webdriver
from selenium.webdriver.chrome.options import Options
options = Options()
options.binary_location = '/usr/bin/google-chrome'
options.add_argument('--headless')
options.add_argument('--window-size=1280,1024')
options.add_argument('--no-sandbox')
driver = webdriver.Chrome('/root/bin/chromedriver', chrome_options=options)
driver.get('http://vraku.com:8080/n20.html') # mine.html 20% cpu use
sleep 10s
driver.save_screenshot('/tmp/screenshot.png')
screenshot

@141801
Copy link
Author

141801 commented Jan 9, 2019

the chrome version is 71

@VidYen
Copy link

VidYen commented Feb 15, 2019

Does your headless browsers have WASM?

https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/browsers.html

wasm-pack test --chrome

I have no clue if that works as never messed with headless browsers, but you have to have WASM for this to work. Like if you had some weird Wawei phone with no WASM, this miner will not work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants