Skip to content

Instantly share code, notes, and snippets.

@hjwp
Last active March 10, 2017 19:03
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hjwp/493ab977618d6a28f46ed681a0438739 to your computer and use it in GitHub Desktop.
1489172367275 geckodriver INFO Listening on 127.0.0.1:60551
1489172368371 mozprofile::profile INFO Using profile path /tmp/rust_mozprofile.umgbzIjSgMQF
1489172368371 geckodriver::marionette INFO Starting browser /usr/bin/firefox
1489172368373 geckodriver::marionette INFO Connecting to Marionette on localhost:36527
1489172369021 Marionette INFO Listening on port 36527
[Child 13641] WARNING: pipe error (3): Connection reset by peer: file /build/firefox-FILPL9/firefox-51.0.1+build2/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 323
[Child 13641] ###!!! ABORT: Aborting on channel error.: file /build/firefox-FILPL9/firefox-51.0.1+build2/ipc/glue/MessageChannel.cpp, line 2056
[Child 13641] ###!!! ABORT: Aborting on channel error.: file /build/firefox-FILPL9/firefox-51.0.1+build2/ipc/glue/MessageChannel.cpp, line 2056
from selenium import webdriver
driver = webdriver.Firefox()
try:
driver.get('http://www.google.com')
thing = driver.find_element_by_name('q')
print(thing.location)
finally:
driver.quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment