Skip to content

Instantly share code, notes, and snippets.

@ddavison
Created March 20, 2015 13:58
Show Gist options
  • Select an option

  • Save ddavison/8f7b207e991f655b6b64 to your computer and use it in GitHub Desktop.

Select an option

Save ddavison/8f7b207e991f655b6b64 to your computer and use it in GitHub Desktop.
firefox profile disable java selenium
import os
from selenium import webdriver
fp = webdriver.FirefoxProfile()
fp.set_preference("extensions.blocklist.enabled",False)
browser = webdriver.Firefox(firefox_profile=fp)
browser.get("http://pypi.python.org/pypi/selenium")
browser.find_element_by_partial_link_text("selenium-2").click()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment