Omaha Python Users Group

Python Users in the Omaha Metro Area

November 22, 2011

Omaha Python Users Group Meeting, Nov 21, 2011

Filed under: code,MeetingNotes,Snippets — JeffH @ 9:56 am

Tonight’s Meeting Topics:

-- Selenium2 --

Selenium RC vs Webdriver -
Selenium -
Why -

Firefox, Chrome, Ie, iOS, Android, Opera

-- Setting up an environment --
  virtualenv --no-site-packages Se-Pres(entation)
  cd Se-Pres
  source bin/activate
  easy_install selenium
Now fire up an interpreter:
  from selenium import webdriver
  b = webdriver.Firefox()
  b.get_cookies()   (a list of dicts, each containing a cookie and support info)

>>> b.find_element_by_name('q')
<selenium.webdriver.remote.webelement.WebElement object at 0x874b22c>
>>> sbx = b.find_element_by_name('q')
>>> sbx.send_keys('omaha python')
>>> sbx.submit()
>>> b.title
u'omaha python - Google Search'


-- Other Helpful things --
unittest -
nose -

nose-testconfig -

The meeting concluded about 9pm when the venue closed but we continued with a 15 minute parking lot track that included references to Code Complete and general development concepts.  Great Meeting! and everyone is looking forward to the next.

Powered by WordPress