A Java library that enables you to launch Selenium ChromeDriver using an existing user Profile. That let you to carry cookies over multiple HTTP sessions via user Profile.
0
stars
0
forks
source link
ChromeUserProfile object should have a attribute that tells if the cache directory is present on disk or not #77
There will be the folders of Defalul and Profile 17 in the genuine UserDataDir.
However, there could be a case that the Profile 17 is found in the Local State file but actually there is no Profile 17 folder in the generated UserDataDir. This could be a case where the UserDataDir was dynamically created by ChromeUserProfile.newChromeDriver() with UserDataAccess.TO_GO.
isPresent: true if LocalState class checked if the CacheDirectory and found that the CacheDirectory is actually present. false otherwise --- this could imply 2 cases.
Case1: The LocalState class checked and found that the CacheDirectory is not present.
Case2: The presence of the CacheDirectory was not verifed. Just saying "I am not sure".
ChromeUserProfile#getChromeUserProfileList() returns a List, which is in fact an extract of the
Local State
file in the UserDataDir.There will be the folders of
Defalul
andProfile 17
in the genuine UserDataDir.However, there could be a case that the
Profile 17
is found in theLocal State
file but actually there is noProfile 17
folder in the generated UserDataDir. This could be a case where the UserDataDir was dynamically created by ChromeUserProfile.newChromeDriver() withUserDataAccess.TO_GO
.So I want to distiguish such case:
isPresent
: true ifLocalState
class checked if the CacheDirectory and found that the CacheDirectory is actually present. false otherwise --- this could imply 2 cases.