ANN: selenium 2 dev
Hello All, This is the first release of Selenium 2 Python bindings. It contains the Selenium 1 Python bindings and a working Selenium 2 remote client. The plan in the future is to add Firefox, IE and Chrome "direct" bindings as well. Please note this is ALPHA quality code, so expect bugs (and report them at http://code.google.com/p/selenium/issues) Installing == pip install -U selenium Using = Server -- You'll need the Selenium 2 server (Java). Download it from http://selenium.googlecode.com/files/selenium-server-standalone-2.0a4.jar The run the server with "java -jar selenium-server- standalone-2.0a4.jar" Example --- from selenium.remote import connect from selenium import FIREFOX from selenium.common.exceptions import NoSuchElementException from time import sleep browser = connect(FIREFOX) # Get local session of firefox browser.get("http://www.yahoo.com";) # Load page assert browser.get_title() == "Yahoo!" elem = browser.find_element_by_name("p") # Find the query box elem.send_keys("selenium\n") sleep(0.2) # Let the page load, will be added to the API try: browser.find_element_by_xpath("//a[contains(@href,'http:// seleniumhq.org')]") except NoSuchElementException: assert 0, "can't find seleniumhq" browser.close() Happy testing, -- Miki -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
ANN: unittest 0.4.2 released
unittest2 0.4.2 is now released: http://pypi.python.org/pypi/unittest2/ unittest2 is a backport of the new features in the Python 2.7 version of the standard library testing framework unittest. The major improvements over unittest in Python 2.6 include: * A standard test runner with automatic test discovery * Improved command line options - fail fast, control-c catching and buffering standard out * Many new assert methods * Improvements to assertRaises (as context manager) and assertAlmostEqual (delta keyword argument) * Class and module level setup and teardown * Cleanup functions for better resource handling * Test skipping and expected failures * Lots of other minor changes and improvements For more details see: http://www.voidspace.org.uk/python/articles/unittest2.shtml Version 0.4.2 has feature parity with the version of unittest in Python 2.7 RC 1. There are a few bug fixes since version 0.4.1. 2010/06/06 - 0.4.2 -- Improved help message for ``unit2 discover -h``. SkipTest in unittest.TestCase.setUpClass or setUpModule is now reported as a skip rather than an error. Excessively large diffs due to ``TestCase.assertSequenceEqual`` are no longer included in failure reports. (Controlled by ``TestCase.maxDiff``.) Matching files during test discovery is done in ``TestLoader._match_path``. This method can be overriden in subclasses to, for example, match on the full file path instead of the name only or use regular expressions for matching. Addition of a setuptools compatible entrypoint for the unit2 test runner script. Contributed by Chris Withers. Tests fixed to be compatible with Python 2.7, where deprecation warnings are silenced by default. Feature parity with unittest in Python 2.7 RC 1. All the best, Michael Foord -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
PyCon Australia 2010 registration deadline reminder
Hi everyone, PyCon Australia 2010, to be held at the Sydney Masonic Center over the weekend of June 26 and 27, is drawing ever closer. REGISTRATION WILL CLOSE JUNE 22! We will NOT be accepting registrations at the door. Register here: http://pycon-au.org/reg We offer two levels of registration for PyCon Australia 2010: Full - $198 This is the registration rate for regular attendees. Full registration includes one seat at the conference dinner on Saturday night. Student - $44 For students able to present a valid student card we're offering this reduced rate. Student registrations do not include a seat at the conference dinner. Additional seats at the conference dinner may be purchased for $77 each. All prices include GST. Information about the registration process is on the PyCon Australia website. Richard Jones PyCon Australia 2010 -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/