Share
Go down
AL|EN
Posts : 1
Join date : 2013-10-30

How to load default Firefox profile for FirefoxWebDriver using Powershell

on Wed Oct 30, 2013 5:48 pm
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 ?
Back to top
Permissions in this forum:
You cannot reply to topics in this forum