Class FirefoxDriver

    • Constructor Detail

      • FirefoxDriver

        protected FirefoxDriver​(String url)
        To get FirefoxDriver instance use UiDriver.getFirefoxDriver()
        Parameters:
        url - the target application URL
      • FirefoxDriver

        protected FirefoxDriver​(String url,
                                String browserPath)
        To get FirefoxDriver instance use UiDriver.getFirefoxDriver()
        Parameters:
        url - the target application URL
        browserPath - the browser start path or the remote selenium hub URL (eg. http://10.11.12.13:4444/wd/hub/)
      • FirefoxDriver

        protected FirefoxDriver​(String url,
                                String browserPath,
                                String remoteSeleniumURL)
        To get FirefoxDriver instance use UiDriver.getFirefoxDriver()
        Parameters:
        url - the target application URL
        browserPath - the browser start path
        remoteSeleniumURL - the remote selenium hub URL (eg. http://10.11.12.13:4444/wd/hub/)
    • Method Detail

      • setProfileDirectory

        public void setProfileDirectory​(String profileDirectory)
        Parameters:
        profileDirectory - Firefox profile directory (absolute path)
      • getProfileDirectory

        public String getProfileDirectory()
        Returns:
        the Firefox profile directory (absolute path)
      • setProfileName

        public void setProfileName​(String profileName)
        Set profile name
         NOTE: If there is a problem sending a profile to a remote Selenium hub
         try to specify the profile name in the selenium hub start command:
              java -jar selenium-server-standalone.jar -Dwebdriver.firefox.profile="profile name"
         
        Parameters:
        profileName - Firefox profile name
      • getProfileName

        public String getProfileName()
        Returns:
        the Firefox profile name