FirefoxProfile class

Creates a Firefox profile in a format so it can be passed using the desired capabilities map.


FirefoxProfile({Directory profileDirectory})
Creates a new FirefoxProfile. [...]


hashCode int
The hash code for this object. [...]
read-only, inherited
prefs List<PrefsOption>
The read-only settings of the prefs.js file of the profile directory.
profileDirectory Directory
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
userPrefs List<PrefsOption>


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
removeOption(String name) bool
Remove the option named name from userPrefs. If lockedPrefs contains this option it will not be removed. Returns true if userPrefs was removed, false if it was not removed because userPrefs doesn't contain it because lockedPrefs contains it.
setOption(PrefsOption option) bool
Add an option or replace an option if one already exists with the same name. If option exists in lockedPrefs it will not be added. Returns true if userPrefs was updated, false otherwise.
toJson() Map<String, dynamic>
Creates a map like {'browserName: 'firefox', 'firefox_profile': 'xxxxx'} where xxxxx is the zipped and base64 encoded content of the files in profileDirectory if one was pased. The files prefs.js and user.js are generated from the content of prefs and userPrefs. It can be uses like var desired = Capabilities.firefox..addAll(firefoxProfile.toJson()}
toString() String
Returns a string representation of this object.


operator ==(Object other) bool
The equality operator. [...]

Static Methods

loadPrefsFile(File file) Set<PrefsOption>
Load a prefs file and parse the content into a set of PrefsOption. For lines which can't be properly parsed a message is printed and the line is otherwise ignored. Comments, lines starting with // are silently ignored.