http://pypi.python.org/pypi/selenium/2.7.0
You can install the selenium package and start the server (the same computer, just a different process) with which you are connecting with your Python code:
java -jar selenium-server-standalone-2.7.0.jar
then
from selenium import webdriver from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.common.keys import Keys import time browser = webdriver.Firefox()
You can use subprocess to start the server inside your Python code.
gandamu da
source share