google chrome - Appium - running browser tests without clearing browser data -
i'm testing web application on chrome, android (real device, not emulator) using appium. whenever launch test, browser data (bookmarks, history etc.) deleted. there way stop happening?
i tried setting noreset capability true, didn't help.
thank in advance help
public static uri testserveraddress = new uri("http://127.0.01:4723/wd/hub"); // appium running locally public static timespan init_timeout_sec = timespan.fromseconds(180); public void setuptest() { if (driver == null) { desiredcapabilities testcapabilities = new desiredcapabilities(); testcapabilities.setcapability("browsername", "chrome"); testcapabilities.setcapability("platformname", "android"); testcapabilities.setcapability("devicename", "s(galaxy s5)"); testcapabilities.setcapability("noreset", true); appurl = "http://www.google.com/"; //for example driver = new remotewebdriver(testserveraddress, testcapabilities, init_timeout_sec); driver.manage().timeouts().implicitlywait(new timespan(0, 0, globaltimeoutinsec)); driver.navigate().gotourl(appurl); } }
chromedriver starts totally fresh, nothing keeping. there option re-use existent 1 (using desired capability androiduserunningapp) unfortunately appium way kill it.
please see more details in post
Comments
Post a Comment