serhatbolsu / robotframework-appiumlibrary

AppiumLibrary is an appium testing library for RobotFramework
Apache License 2.0
403 stars 291 forks source link

Click Button keyword doesn't work on python 3 #255

Open technigirl opened 5 years ago

technigirl commented 5 years ago

When using the Click Button keyword, I get the following error:

AttributeError: 'dict' object has no attribute 'has_key'

Per the python docs, 'has_key' is deprecated in python 3: https://docs.python.org/3.0/whatsnew/3.0.html#builtins

I am using version 1.5.0.3 of robotframework-appiumlibrary. python version 3.7.2

sample of my code: wait until keyword succeeds 20s 1s click button ${assurant_terms_cont_button}

I can work around it by using Click Element, which does not have the issue.

robco commented 4 years ago

Reproducible in 1.5.0.4 and 1.5.0.6 as well.