I'm attempting to learn some automated testing, but have hit a wall right at the start.
I'm getting the error in the title when I try to run the very simple example from this web site: https://gist.github.com/1126917
Here's the code:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Firefox()
driver.get("http://www.python.org")
assert "Python" in driver.title
elem = driver.find_element_by_name("q")
elem.send_keys("selenium")
elem.send_keys(Keys.RETURN)
assert "Google" in driver.title
driver.close()
I've tried debugging but I didn't have any luck with that. I can't even tell what piece of data is typed wrong. Keep in mind that I just installed most of this into my environment, so I haven't been messing around much.
Relevant info:
- Python 3.2.3
- Selenium 2
Thanks for any help.
As stated in the docs, Selenium bindings for Python are only compatible with Python 2.6 and 2.7.