FirefoxDriver getVersion() returning empty value

RESOLVED INVALID

Status

RESOLVED INVALID
2 years ago
2 years ago

People

(Reporter: phystem2, Unassigned)

Tracking

52 Branch
x86
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
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
(Reporter)

Updated

2 years ago
OS: Unspecified → Windows 7
Hardware: Unspecified → x86
This appears to be a Selenium bug.  Please report accordingly.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.