Closed Bug 1341538 Opened 7 years ago Closed 7 years ago

FirefoxDriver getVersion() returning empty value

Categories

(Remote Protocol :: Marionette, defect)

52 Branch
x86
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: phystem2, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.76 Safari/537.36

Steps to reproduce:

I'm trying to get the Browser Version and Platform after execution. The Below code works fine for ChromeDriver and IEDriver, where as for Firefox its returning empty value fro getVersion() 

OS Windows 7
GeckoDriver 0.14 32bit
Firefox 52.0b4
Selenium 3.1.0
Java 1.8.121

Sample Java code to reproduce the issue

        System.setProperty("webdriver.gecko.driver", getFromResource("geckodriver.exe"));       
 
        WebDriver driver = new FirefoxDriver();
        Capabilities cap = ((RemoteWebDriver) driver).getCapabilities();
        System.out.println(cap.getBrowserName());
        System.out.println(cap.getVersion());
        System.out.println(cap.getPlatform().name());


Actual results:

The output of above code

firefox

ANY


Expected results:

Expected output

firefox
52.0b4
WINDOWS
OS: Unspecified → Windows 7
Hardware: Unspecified → x86
This appears to be a Selenium bug.  Please report accordingly.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.