How to load default Firefox profile for FirefoxWebDriver using Powershell

68 views
Skip to first unread message

ALIEN Quake

unread,
Oct 30, 2013, 6:49:35 AM10/30/13
to seleniu...@googlegroups.com
Hi,

I try everything that is based on C# code examples but i can't load FirefoxWebDriver with my default profile. This is what i try:


$profile = New-Object OpenQA.Selenium.Firefox.FirefoxProfile -Property @{ProfileDirectory = "C:\Users\ALIEN\AppData\Roaming\Mozilla\Firefox\Profiles\2ziq4yrx.default"}
but it doesn't work because "ProfileDirectory" Property is marked as read only. How to change it using Powershell ?
Reply all
Reply to author
Forward
0 new messages