Selenium Tests Framework (STF) create a new firefox profile every time. To use custom profile, create STF default profile, put it in your project's resource folder (*/resources/profiles/customProfileDirCUSTFF). STF will use this default profile if it's there Define the path of specified profile in testng.xml file, e.g. <parameter name="firefoxUserProfilePath" value="c:\PathToProfile"/>, STF will use it instead.