webminerpool
webminerpool copied to clipboard
Cannot work in chrome headless browser
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')
the chrome version is 71
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.