Skip to content

Commit

Permalink
fix in py3.6 error
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Sep 8, 2017
1 parent 328005f commit 4715f79
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
File renamed without changes.
Expand Up @@ -37,7 +37,7 @@ def account_netease_login(s):


def alert_callback(session):
btns = set([u'不再提醒', 'OK', u'知道了']).intersection(session.alert.buttons())
btns = set([u'不再提醒', 'OK', u'知道了', 'Allow']).intersection(session.alert.buttons())
if len(btns) == 0:
raise RuntimeError("Alert can not handled, buttons: " + ', '.join(session.alert.buttons()))
session.alert.click(list(btns)[0])
Expand Down
2 changes: 1 addition & 1 deletion wda/__init__.py
Expand Up @@ -268,7 +268,7 @@ def session(self, bundle_id=None, arguments=None, environment=None):
'shouldWaitForQuiescence': True,
}
# Remove empty value to prevent WDAError
for k in capabilities.keys():
for k in list(capabilities.keys()):
if capabilities[k] is None:
capabilities.pop(k)

Expand Down

0 comments on commit 4715f79

Please sign in to comment.