Skip to content

Commit

Permalink
Fixed wait_for error message, bumped versions
Browse files Browse the repository at this point in the history
  • Loading branch information
neetjn committed Feb 27, 2018
1 parent 56fd20c commit 1e2a761
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
# built documents.
#
# The short X.Y version.
version = u'0.1.5'
version = u'0.1.6'
# The full version, including alpha/beta/rc tags.
release = u'0.1.5'
release = u'0.1.6'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
3 changes: 2 additions & 1 deletion pyscc/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ def wait_for(self, timeout, available=True, error=None):

if error:
raise NoSuchElementException(error if isinstance(error, string_types) else \
'Element by selector "{}" not found'.format(self.selector))
'Element by selector "{}" was {}'\
.format(self.selector, 'not found' if available else 'found'))
return None

return self
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
setup(
name='pyscc',
description='py-component-controller is an opinionated framework for structuring selenium test suites. This project depends on the pyselenium-js project.',
version='0.1.5',
version='0.1.6',
url='https://neetjn.github.io/py-component-controller/',
author='John Nolette',
author_email='john@neetgroup.net',
Expand Down

0 comments on commit 1e2a761

Please sign in to comment.