Tonight’s Meeting Topics:
- Django
- Django and RESTful interfaces via Piston and XML-RPC
- Message Queuing – specifically RabbitMQ, ActiveMQ and STOMP and the 5 primary usage patterns. And integrating MQs in Django with Celery.
- We also had a “follow me” presentation on getting started with Selenium2‘s webdriver. The following are my notes on the presentation:
-- Selenium2 --
Selenium RC vs Webdriver -
Selenium - http://seleniumhq.org/
- http://seleniumhq.org/docs/03_webdriver.html
Why - http://seleniumhq.org/docs/appendix_migrating_from_rc_to_webdriver.html
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:
python
from selenium import webdriver
b = webdriver.Firefox()
b.get('http://www.google.com/')
b.page_source
dir(b)
b.name
b.get_cookies() (a list of dicts, each containing a cookie and support info)
b.current_url
>>> 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'
b.find_element_by_name('foo')
selenium.common.exceptions.NoSuchElementException
-- Other Helpful things --
unittest - http://docs.python.org/library/unittest.html#
nose - http://readthedocs.org/docs/nose/en/latest/
nose-testconfig - http://pypi.python.org/pypi/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.
Omaha Python Users Group
