jrink
New Member
Posts: 1
|
Post by jrink on Sept 13, 2017 12:13:11 GMT
After updating Chrome to version 60.0.03112.113, I began getting a popup when opening chrome after it was not shut down normally, ie. my test killed the browser instead of logging out of the application I was using.
The popup message is: "Restore pages? Chrome didn't shut down correctly", refer to below picture.
To get rid of this popup, please create a chrome preference data file containing the option 'incognitio': Incognito gets rid of the "Restore pages" popup (it also turns the headers dark grey, but it doesn’t affect the automated tests.)
Note: If you have used a preference data file, you can just add the pair "incognito" : "" in you existing preference data file.
Suppose we have a chrome preference file 'c:\pref.json' as below
{ "incognito" : "" } Then we can call as below:
String preferenceDataFile = "c:\\pref.json"; StartWebBrowser(URL, ID, SelectBrowser.BROWSER_NAME_CHROME, "30", "true", quote(SelectBrowser.KEY_CHROME_PREFERENCE), preferenceDataFile);
|
|