Skip to content

Commit

Permalink
Hotfix/log and redirect bugfixes (#9)
Browse files Browse the repository at this point in the history
* Fixed errors in log and redirect to home.
  • Loading branch information
suellenz authored and kieras committed Jun 7, 2018
1 parent 4828254 commit bfcdcb3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion parakeet/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# |_| \__,_|_| \__,_|_|\_\___|\___|\__|


__version__ = '0.0.13'
__version__ = '0.0.14'
6 changes: 3 additions & 3 deletions parakeet/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def click_and_wait_disappear(self):

def type(self, value, type_pause=0):
_type_pause = type_pause if type_pause > 0 else self.parakeet.type_pause
LOG.debug('type {} {}'.format(value, _type_pause))
LOG.debug('type {} {}'.format(value.encode('utf-8', 'replace'), _type_pause))
self.element = self.wait_visibility_of_element_located()
self._type_handle(_type_pause, value)

Expand All @@ -61,11 +61,11 @@ def _type_handle(self, _type_pause, value):
if _type_pause > 0:
self._type_slowly(value, _type_pause)
else:
LOG.debug('type_normal {}'.format(value))
LOG.debug('type_normal {}'.format(value.encode('utf-8', 'replace')))
self.element.send_keys(value)

def _type_slowly(self, value, type_pause):
LOG.debug('type_slowly {}'.format(value))
LOG.debug('type_slowly {}'.format(value.encode('utf-8', 'replace')))

if not (type_pause and isinstance(type_pause, float) and 0.0 < type_pause < 1):
raise ValueError(
Expand Down
2 changes: 1 addition & 1 deletion parakeet/common_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def login(step, user_name):
google_oauth(user_name)
elif world.cfg['login_provider'] == 'google_oauth_gapi2':
google_oauth_gapi2(user_name)
LoginPage(world.browser, world.cfg['system_page_title']).redirect_to_home()
LoginPage(world.browser, world.cfg['system_page_title']).redirect_to_home()


def google_oauth(user_name):
Expand Down

0 comments on commit bfcdcb3

Please sign in to comment.