Selenium WebDriver - Raspberry Pi Forums


too long, didn't read: want selenium work on raspberry pi java(trying on python atm though, because it's more popular here). however, none of drivers seem work.

hello,
first tried using chromedriver, i've read somewhere doesn't support arm architecture. getting error:
/home/pi/desktop/selenium/chomedriver: syntax error: word unexpected (expecting ")")
nothing seemed work, gave up.

tried using firefox instead. found instructions python, wanted run python first , try make work java. however, wrong well. have done far:
1. used these commands:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install iceweasel
sudo apt-get install xvfb
sudo pip install selenium
sudo pip install pyvirtualdisplay
sudo pip install xvfbwrapper

2. used python script:
pyvirtualdisplay import display
selenium import webdriver

display = display(visible=0, size=(1024, 768))
display.start()

driver = webdriver.firefox()
driver.get('http://raspberrypi.stackexchange.com/')
driver.quit()

display.stop()

3. i've downloaded geckodriver here: https://github.com/mozilla/geckodriver/releases
file: geckodriver-v0.18.0-arm7hf.tar.gz
extracted /usr/local/bin/geckodriver

however, when running code above this:
file "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
webdriverexception: message: unable find matching set of capabilities

googled , found answers updating everything: firefox, selenium, gecko

versions are:
python 2.7.9
geckodriver 0.18.0
firefox 45.9.0
selenium - don't know how check it, should fine when installed it, right?

things seem date. else suggest? want selenium run badly :(

solved. had update firefox. however, couldn't find way of updating iceweasel version 53.

if has same problem:
used site: https://mozilla.debian.net/
selected: running debian oldstable(jessie) , want install firefox version esr52
, followed instructions


raspberrypi



Comments

Popular posts from this blog

Valutazione Template - Joomla! Forum - community, help and support

SD Datastring Convention

First use of Arduino Uno : avrdude error on Blink uploading