新手求救:
环境是 Windows+Python+Andriod4.4

连最起码的 启动都起不来,不知道什么原因: 请大拿帮助:
import os
from selenium import webdriver

desired_caps = {}
desired_caps['device'] = 'Android'
desired_caps['browserName'] = ''
desired_caps['version'] = '4.4'
desired_caps['app'] = 'E:\Andriod\APK\FAMIBOT_debug.apk'
desired_caps['app-package'] = 'com.ecovacs'
desired_caps['app-activity'] = 'Ecologin'

driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)

driver.quit()

log:

Traceback (most recent call last):
  File "E:\Andriod\WorkSpace\DaogouTest\src\com\ecovacs\daogou.py", line 13, in
    driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
  File "C:\Python33\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 71, in init
    self.start_session(desired_capabilities, browser_profile)
  File "C:\Python33\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 113, in start_session
    'desiredCapabilities': desired_capabilities,
  File "C:\Python33\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 164, in execute
    self.error_handler.check_response(response)
  File "C:\Python33\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 164, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: "A new session could not be created. (Original error: Activity used to start app doesn't exist! Make sure it exists)" 

可是我查过了 activity 是正确的。


↙↙↙阅读原文可查看相关链接,并与作者交流