android - Shows error in webdriver -
i wrote unit test case in python automating login screen of app. using appium. got error in following line. have set desired capabilities.
desired_caps = {} desired_caps['platformname'] = 'android' desired_caps['platformversion'] = '6.0.1' desired_caps['devicename'] = 'redmi 3s' desired_caps['app'] = '/users/sanju/desktop/myapp.apk' class utils(object) : @staticmethod def initialswipes(driver): _ in range(0, 5): try : driver.execute_script("mobile: swipe", {"direction": "left"}) except webdriverexception : return false return true class mytestcase(unittest.testcase): def test_something(self): driver = webdriver.remote('http://localhost:4723/wd/hub', desired_caps)
error is: file "/users/sanju/pycharmprojects/android/login.py", line 37, in test_something driver = webdriver.remote('http://localhost:4723/wd/hub', desired_caps)
Comments
Post a Comment