Skip to content

Commit 3217b73

Browse files
committed
Merge pull request appium#76 from appium/isaac-startactivity
Fix start_activity for Python3
2 parents 4ef7c2e + 997b701 commit 3217b73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

appium/webdriver/webdriver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,9 @@ def start_activity(self, app_package, app_activity, **opts):
549549
'optional_intent_arguments': 'optionalIntentArguments',
550550
'stop_app_on_reset': 'stopAppOnReset'
551551
}
552-
for key in arguments.iterkeys():
552+
for key, value in arguments.items():
553553
if opts.has_key(key):
554-
data[arguments[key]] = opts[key]
554+
data[value] = opts[key]
555555
self.execute(Command.START_ACTIVITY, data)
556556
return self
557557

0 commit comments

Comments
 (0)