• 666

  • 这个也已做到拖动是吗

  • /Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 /Applications/PyCharm.app/Contents/helpers/pycharm/_jb_unittest_runner.py --path /Users/shixin/zuobiao/zuobiaoCase/LoginModel.py
    Testing started at 上午 10:29 ...
    Launching unittests with arguments python -m unittest /Users/shixin/zuobiao/zuobiaoCase/LoginModel.py in /Users/shixin/zuobiao/zuobiaoCase

    Ran 0 tests in 0.042s

    FAILED (errors=1)

    Failure
    Traceback (most recent call last):
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/unittest/suite.py", line 163, in handleClassSetUp
    setUpClass()
    File "/Users/shixin/zuobiao/zuobiaoCase/LoginModel.py", line 12, in setUpClass
    cls.driver=GetAppiumDriver().driver
    File "/Users/shixin/zuobiao/Utills/Common.py", line 7, in singleton
    instances[cls] = cls(args,*kw)
    File "/Users/shixin/zuobiao/Utills/GetAppiumDriver.py", line 16, in __init

    self.driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub,desired_caps")
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/appium/webdriver/webdriver.py", line 36, in init
    super(WebDriver, self).init(command_executor, desired_capabilities, browser_profile, proxy, keep_alive)
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 98, in init
    self.start_session(desired_capabilities, browser_profile)
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 188, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in execute
    self.error_handler.check_response(response)
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/selenium/webdriver/remote/errorhandler.py", line 165, in check_response
    raise exception_class(value)
    selenium.common.exceptions.WebDriverException: Message: Parameters were incorrect. We wanted {"required":["desiredCapabilities"],"optional":["requiredCapabilities","sessionId","id"]} and you sent ["desiredCapabilities","capabilities"]

    Stdout:

    Process finished with exit code 1
    appium 1.5.2 Mac10.12.4 jdk1.7
    appium-doctor

    代码在 win10 上跑的同,在 mac'上总是提示 selenium.common.exceptions.WebDriverException: Message: Parameters were incorrect. We wanted {"required":["desiredCapabilities"],"optional":["requiredCapabilities","sessionId","id"]} and you sent ["desiredCapabilities","capabilities"]
    困扰几天了,自己没找到问题的原因

  • 不知道那出了问题,自己也困扰几天了,没有办法解决

  • /Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 /Applications/PyCharm.app/Contents/helpers/pycharm/_jb_unittest_runner.py --path /Users/shixin/zuobiao/zuobiaoCase/LoginModel.py
    Testing started at 上午 10:29 ...
    Launching unittests with arguments python -m unittest /Users/shixin/zuobiao/zuobiaoCase/LoginModel.py in /Users/shixin/zuobiao/zuobiaoCase

    Ran 0 tests in 0.042s

    FAILED (errors=1)

    Failure
    Traceback (most recent call last):
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/unittest/suite.py", line 163, in handleClassSetUp
    setUpClass()
    File "/Users/shixin/zuobiao/zuobiaoCase/LoginModel.py", line 12, in setUpClass
    cls.driver=GetAppiumDriver().driver
    File "/Users/shixin/zuobiao/Utills/Common.py", line 7, in _singleton
    instances[cls] = cls(args,*kw)
    File "/Users/shixin/zuobiao/Utills/GetAppiumDriver.py", line 16, in __init
    _
    self.driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub,desired_caps")
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/appium/webdriver/webdriver.py", line 36, in init
    super(WebDriver, self).init(command_executor, desired_capabilities, browser_profile, proxy, keep_alive)
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 98, in init
    self.start_session(desired_capabilities, browser_profile)
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 188, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in execute
    self.error_handler.check_response(response)
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/selenium/webdriver/remote/errorhandler.py", line 165, in check_response
    raise exception_class(value)
    selenium.common.exceptions.WebDriverException: Message: Parameters were incorrect. We wanted {"required":["desiredCapabilities"],"optional":["requiredCapabilities","sessionId","id"]} and you sent ["desiredCapabilities","capabilities"]

    Stdout:

    Process finished with exit code 1
    appium 1.5.2 Mac10.12.4 jdk1.7
    appium-doctor
    代码在 win10 上跑的同,在 mac'上总是提示 selenium.common.exceptions.WebDriverException: Message: Parameters were incorrect. We wanted {"required":["desiredCapabilities"],"optional":["requiredCapabilities","sessionId","id"]} and you sent ["desiredCapabilities","capabilities"]
    困扰几天了,自己没找到问题的原因