WebDriverSetProfile Method
Set a specific profile for the firefox webdriver

Namespace: Selenium
Assembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
Syntax
VB Usage
Dim instance As WebDriver
Dim nameOrDirectory As String
Dim persistant As Boolean

instance.SetProfile(nameOrDirectory, 
	persistant)

Parameters

nameOrDirectory
Type: SystemString
Profil name (Firefox only) or directory (Firefox and Chrome)
persistant (Optional)
Type: SystemBoolean
If true, the browser will be launched without a copy the profile (Firefox only)
Remarks
The profile directory can be copied from the user temp folder (run %temp%) before the WebDriver is stopped. It's also possible to create a new Firefox profile by launching firefox with the "-p" switch (firefox.exe -p).
Examples
Dim driver As New Selenium.FirefoxDriver
driver.SetProfile "Selenium"  'Firefox only. Profile created by running "..\firefox.exe -p"
driver.Get "http://www.google.com"
...
Dim driver As New Selenium.FirefoxDriver
driver.SetProfile "C:\MyProfil"   'For Chrome and Firefox only
driver.Get "http://www.google.com"
...
See Also