在下面:
chrome://flags
我没找到
--enable-precise-memory-info
试图运行:
ChromeOptions options = new ChromeOptions();
options.AddArguments("--enable-precise-memory-info");
也没有成功,价值观四舍五入。
它甚至可能吗?
如果您需要有关此问题的更多详细信息,请告诉我们
注意:它不仅仅是桌面,移动浏览器浏览!
这样做的一种方法是使用adb
adb -s $deviceId shell am start -n com.android.chrome/com.google.android.apps.chrome.Main argv --args='--enable-precise-memory-info'
获取设备ID:
adb devices
但是它不会为下一个会话保存标志,如果你试图用SeleniumWebDriver打开它可能应该通过添加DesiredCapabilities
来完成ChromeOptions
...但它仍然是一个问题如何做到这一点
目前是Appium 1.7.1问题。