WebDriverSetProfile メソッド
Firefox 用 WebDriver のプロファイルを指定します。

名前空間: Selenium
アセンブリ: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
構文
VB 使用例
Dim instance As WebDriver
Dim nameOrDirectory As String
Dim persistant As Boolean

instance.SetProfile(nameOrDirectory, 
	persistant)

パラメータ

nameOrDirectory
型: SystemString
プロファイル名(Firefox のみ)またはディレクトリ(Firefox と Chrome)。
persistant(省略可)
型: SystemBoolean
True のとき、プロファイルのコピーなしでブラウザーを起動します(Firefox のみ)。
備考
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).
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"
...
参照