请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

老师,安卓环境下调起 APP 反复闪退和重启是什么原因?

Traceback (most recent call last):

  File "/Users/hanxia/PycharmProjects/jiuhuar/PO/Case/test_case.py", line 29, in test01

    self.loginbusiness.login_pass()

  File "/Users/hanxia/PycharmProjects/jiuhuar/PO/business/login_business.py", line 11, in login_pass

    self.loginhandle.click_mine_button()

  File "/Users/hanxia/PycharmProjects/jiuhuar/PO/handle/login_handle.py", line 15, in click_mine_button

    self.homepage.get_mime_element().click()

  File "/Users/hanxia/PycharmProjects/jiuhuar/PO/page/home_page.py", line 15, in get_mime_element

    return self.get_by_local.get_element('mine')

  File "/Users/hanxia/PycharmProjects/jiuhuar/PO/util/get_by_local.py", line 21, in get_element

    return self.driver.find_element_by_xpath(local_by)

  File "/Library/Python/2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 290, in find_element_by_xpath

    return self.find_element(by=By.XPATH, value=xpath)

  File "/Library/Python/2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 744, in find_element

    {'using': by, 'value': value})['value']

  File "/Library/Python/2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 233, in execute

    self.error_handler.check_response(response)

  File "/Library/Python/2.7/site-packages/appium/webdriver/errorhandler.py", line 29, in check_response

    raise wde

WebDriverException: Message: A session is either terminated or not started


正在回答 回答被采纳积分+3

2回答

Mushishi 2019-11-21 09:54:50

A session is either terminated or not started  你这个也是告诉 你得appium已经挂掉了,此时应该去看appium的日志。

0 回复 有任何疑惑可以回复我~
Mushishi 2019-11-20 21:45:52

你app不支持模拟器,

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信