240 发简信
IP属地:湖南
  • Traceback (most recent call last):
    File "E:/auto_app/lib/login.py", line 56, in <module>
    verifycode = code.wait_for_new_code()
    File "E:\auto_app\lib\verifycode.py", line 35, in wait_for_new_code
    old_codes = self._get_all_codes()
    File "E:\auto_app\lib\verifycode.py", line 21, in _get_all_codes
    notifications = str(self.driver.execute_script("mobile: getNotifications"))
    File "C:\Users\zx\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 634, in execute_script
    return self.execute(command, {
    File "C:\Users\zx\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
    File "C:\Users\zx\AppData\Local\Programs\Python\Python38\lib\site-packages\appium\webdriver\errorhandler.py", line 31, in check_response
    raise wde
    File "C:\Users\zx\AppData\Local\Programs\Python\Python38\lib\site-packages\appium\webdriver\errorhandler.py", line 26, in check_response
    super().check_response(response)
    File "C:\Users\zx\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
    selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Cannot retrieve notifications from the device. Check the server log for more details
    大神,用这段代码,会报错 我的appium是1.19版本的 请指点下问什么呢

    Python实现Appium读取短信验证码

    最近在使用Appium做App自动化测试的时候,遇到需要读取短信验证码的场景。在网上查阅了很多资料,大致有以下几种方案: 通过下拉手机状态栏从消息中心获取短信验证码,或者打开...

  • Python实现Appium读取短信验证码

    最近在使用Appium做App自动化测试的时候,遇到需要读取短信验证码的场景。在网上查阅了很多资料,大致有以下几种方案: 通过下拉手机状态栏从消息中心获取短信验证码,或者打开...