getChromeProfile | R Documentation |
getChromeProfile
A utility function to get a Chrome profile.
getChromeProfile(dataDir, profileDir)
dataDir |
Specifies the user data directory, which is where the browser will look for all of its state. |
profileDir |
Selects directory of profile to associate with the first browser launched. |
A chrome profile directory is passed as an extraCapability. The data dir has a number of default locations
Google Chrome: C:/Documents and Settings/%USERNAME%/Local Settings/Application Data/Google/Chrome/User Data
Google Chrome: C:/Users/%USERNAME%/AppData/Local/Google/Chrome/User Data
Google Chrome: ~/Library/Application Support/Google/Chrome
Google Chrome: ~/.config/google-chrome
The profile directory is contained in the user directory and by default is named "Default"
## Not run: # example from windows using a profile directory "Profile 1" cprof <- getChromeProfile( "C:\\Users\\john\\AppData\\Local\\Google\\Chrome\\User Data", "Profile 1" ) remDr <- remoteDriver(browserName = "chrome", extraCapabilities = cprof) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.