清除所有应用程序的缓存

问题描述

| 我知道存在清单权限“ CLEAR_APP_CACHE”,但我不知道如何使用它。谁能告诉我如何清除所有已安装应用程序的缓存?     

解决方法

        我认为是这样的:
from selenium.webdriver.remote.command import Command
self.driver.execute(Command.CLEAR_APP_CACHE)
发现类似 https://code.google.com/p/selenium/source/browse/trunk/py/selenium/webdriver/common/html5/application_cache.py 但是当我尝试将其与Firefox Webdriver一起使用时,我得到了这个   WebDriverException:消息:\'无法识别的命令:DELETE / session / 6086cb3e-2397-470b-919c-ee36a3bb5d32 / application_cache / clear \'     ,        从这个android-developers线程:   如果它保护的API不包含在SDK中,则CLEAR_APP_CACHE可能不应该包含在SDK中。 :)