-
Notifications
You must be signed in to change notification settings - Fork 35
ReleaseNotes
adamgoucher edited this page Mar 14, 2012
·
61 revisions
This is a big release.
changes
- WebDriver Page Objects now get their browser information as a constructor (dependency injection) rather than from a singleton
- The SaunterWebDriver inherits in a more OO manner rather than having static methods on it. This allows the resulting code to be more in line with 'typical' Se code
- Fixed Sauce Labs integration when downloading artifacts from Se-RC
upgrade notes
- For those using WebDriver you need to read http://element34.ca/blog/okay-maybe-a-singleton-wasnt-such-a-hot-idea for the upgrade steps. I've already upgraded two codebases so think I have all the steps, but email me ([email protected]) or call (905 995 5035) if you find a problem converting things over.
- For those using RC, to get the Sauce fix you should make sure you have the current conftest.py contents as illustrated in the Sauce Labs example - https://github.com/Element-34/py.saunter/blob/master/examples/saucelabs/conftest.py
changes
- added a --version flag to quickly figure out what version you have
- updated things to use selenium 2.19.0
- updated to use py.test 2.2.3
- added wait_for_element_present and wait_for_element_visibility_change to the rc's base Page class
changes
- instead of the initial se window always grabbing / from the server, it uses whatever the base_url is in saunter.ini
changes
- py.test's xfail should now work
- upgraded the versions of se py.test that are expected
upgrade notes
- remove the pytest_runtest_makereport method and AdvancedReport class from conftest.py
changes
- added a new Number element base class that will int() the returned value from Se
- can disable autofocus
changes
- exposed --durations argument, though it doesn't really do anything all that useful
ummm, ya. got confused with my commits and this didn't really happen
a small experimental release for disabling autofocus in a specific place; fully implemented in 0.35
changes
- the full stack of a failing line (like a timeout) is displayed by default so you can see where things in your code is failing, just just where in saunter it was dying
changes
- can now control the rc timeout value from saunter.ini
upgrade notes
- add 'timeout' to the Selenium section of saunter.ini in order to get more control over the timeout. this config option takes the number seconds to wait (not ms which i think is just annoying). if you do not add this in, then the default of 30 seconds is used
changes
- implicit waits when switching to a popup window in remote control now work
- which was as a direct result of not swallowing the error the server returned when the window wasn't found
- the parsing of the message (error) from the server when an element or window isn't found is done as unicode rather than as a string
- wait_for_element_present(locator) is now available on rc based pages
apparently i did a double version bump.
changes
- implicit waits now work for webdriver
- setting text in a field that inherits from saunter.po.webdriver.text now works
- increased the se version to 2.14 which pulls in a firefox-to-the-foreground fix
- --collectonly is now exposed
changes
- exposed the py.test --pdb flag
- exposed the --maxfail flag for early exit of runs
- upgrading the required py.test version to 2.2.0
- removed the marksfiltration plugin since collection is now fixed in 2.2.x
- google chrome support for webdriver
upgrade notes
- the way to collect script has now changed as a result of using py.test's collection system. first, the flag is -m (marker) now rather than -f (filter).
shallow | do nothing, this is the default |
single | -m ebay |
or | -m "shirts or meta" |
and | -m "shirts and ebay" |
filter | -m "ebay and not meta" |
filter | -m "not meta" |
chromedriver_path: /Users/adam/Downloads/chromedriver
changes
- the config file is now read using SafeConfigParser instead of RawConfigParser which is apparently a good thing (and a feature request)
- new flag -p to control additional py.test plugins. your milage with them of course will vary
- new flag --traceconfig to let you see which plugins are enabled or disabled
- the built-in 'mark' plugin is disabled as it was conflicting with the markfiltration one which does better collection. this conflict broke a filtration of things like '-f foo -f bar' and '-f foo -bar'
changes
- fixing an import when using WebDriver
changes
- For RC, a screen capture is taken right before the browser is closed and put in logs//final.png
- For both RC and WebDriver, if an exception happens in setUp() the browser should still get closed and not be orphaned
upgrade notes
- the non-orphan trigger is in conftest.py which is created when you run with the --new argument. since this file does not get stomped on with subsequent runs it needs to be manually copied. The new conftest.py is at /site-packages/py.saunter-0.23-py2.7.egg/saunter/_defaults/conftest.py.
changes
- buildbot will now correctly report passed or failed
changes
- new flag --tb to control the output you want from failed scripts (same as the py.test one)
changes
- fix a type-o around implicit waits. and then type-o in the fix. and that fix.
changes
- implicit waits should now work with webdriver
- added find_elements_by_locator to SaunterWebDriver
- added wait_for_available to saunter.po.webdriver.page
- fixed the missing imports from saunter.providers.django_provider
changes
- fixed the se server 'hanging' when saunter was controlling it in the background
changes
- even if the server version was bumped it wouldn't be downloaded
changes
- fixed the logfile name which didnt have the hour in it
- the 'focus' command doesn't throw and exception if the locator it is locating on doesnt exist
changes
- bumped the server jar from 2.5.0 to 2.7.0
changes
- fixed a problem with setting focus with 'select' commands
changes
- ummm. wouldn't run due to a type-o. well, not really a type-o, but a lesson learned that you cannot use 0.10.1 as a version
changes
- requires selenium 2.6.0 bindings
- repo change from personal account to the organization one
changes
- screenshots of command results are now available which are stored in logs/ as a numerical sequence
upgrade notes
- add 'take_screenshots' to the 'Saunter' section as a true/false value
changes
- elements now are 'focus'ed before interacted with
changes
- added a mechanism for modifying the Selenium RC API
upgrade notes
- there is a new module that is needed for this upgrade to work. running 'pysaunter --new' will create it for you.
changes
- fixed updating of Se-RC jobs run in Sauce OnDemand
- replaced urllib2 with requests
- the selenium server detection was hardcoded to look at localhost:4444. now reads from the config file
upgrade notes
- the bulk of the changes were done in the conftest.py which is created when you run with the --new argument. since this file does not get stomped on with subsequent runs it needs to be manually copied. The new conftest.py is at /site-packages/py.saunter-0.7-py2.7.egg/saunter/_defaults/conftest.py.
changes
- reworked how the selenium server is controlled
- added webdriver (always through remote) support
- refactored a bit of the Sauce integration
upgrade notes
- saunter.ini changes
- new manage_server key in [Saunter] that is either true or false. when false the assumption is that you are controlling the server some other way (such as with puppet)
- server key in [Saunter] is now server_path and points to selenium server jar you want to use. it it is not found py.saunter will download one for you
- SaunterTestCase has been moved to either saunter.testcase.remotecontrol or saunter.testcase.webdriver. Adjust your imports accordingly
- fixed argument parsing; the default really is 'shallow' as a tag when there is no tag provided.
- added implicit wait support. the control, modify the following values in your saunter.ini
- use_implicit_wait: true
- implicit_wait: 30
- when a locator is not found, it throws a useful exception instead of just a stack trace
- Element css=.countr was not found. It is used in the ShirtPage page object in the pages.shirts module.
- moved the starting of the server outside of initialization of a new project
- added new [Saunter] section to saunter.ini (people upgrading will have to manually add this blank section)
- examples now available in github
- generators now work
- providers now work
- first public release