DesiredCapabilities appCapabilities = new DesiredCapabilities();
appCapabilities.SetCapability(MobileCapabilityType.NoReset, true);
appCapabilities.SetCapability(MobileCapabilityType.PlatformName, MobilePlatform.Android);
appCapabilities.SetCapability(MobileCapabilityType.DeviceName, "0");
appCapabilities.SetCapability(MobileCapabilityType.Udid, device);
appCapabilities.SetCapability(MobileCapabilityType.BrowserName, MobileBrowserType.Chrome);
appCapabilities.SetCapability(MobileCapabilityType.NewCommandTimeout, 10000);
driver = new AndroidDriver<IWebElement>(new Uri("http://127.0.0.1:4723/wd/hub"), appCapabilities);
это мой код.
[JSONWP Proxy] Got response with status 200: {"sessionId":"494892b985b37b1e9aa0c949d73dfc8e","status":0,"value":{"acceptInsecureCerts":false,"acceptSslCerts":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"browserName":"chrome","chrome":{"chromedriverVersion":"2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb)"},"cssSelectorsEnabled":true,"databaseEnabled":false,"handlesAlerts":true,"hasTouchScreen":true,"javascriptEnabled":true,"locationContextEnabled":true,"mobileEmulationEnabled":false,"nativeEvents":true,"pageLoadStrategy":"normal","platform":"ANDROID","rotatable":false,"setWindowRect":false,"takesHeapSnapshot":true,"takesScreenshot":true,"unexpectedAlertBehaviour":"","version":"67.0.3396.87","webStorageEnabled":true}}
это журнал приложений.
я думаю [ "applicationCacheEnabled" : false ]
создает проблему.
Я хочу установить applicationCacheEnabled : true
или
Настройка без сброса кеша хрома.
Я ищу варианты и нашел "NoReset"
но это не сработало для Chrome Broswer.
только приложение выполнения работ.
Мне нужна помощь. C # или Java-код, что-нибудь ...