webminerpool icon indicating copy to clipboard operation
webminerpool copied to clipboard

Cannot work in chrome headless browser

Open 141801 opened this issue 5 years ago • 2 comments

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 avatar Jan 09 '19 20:01 141801

the chrome version is 71

141801 avatar Jan 09 '19 20:01 141801

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.

VidYen avatar Feb 15 '19 20:02 VidYen