We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getPlatform()
map.get("platform")
Platform
cap.getPlatform().toString() returns Platform as XP while map.get("platform") returns Platform as ANY
cap.getPlatform().toString()
XP
ANY
Through 895 @andreastt confirmed it's a Java Client issue.
895
OS: Windows 8 Pro, 64 bit
Selenium Version: 3.5.2 (Java)
Selenium Binding: Java
GeckoDriver Version: 0.18.0
Browser: Mozilla Firefox
Browser Version: 55.0.2
Minimal Code Block:
package demo; import java.util.Map; import org.openqa.selenium.Capabilities; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.remote.RemoteWebDriver; public class WEBDRIVER_Platform { public static void main(String[] args) { String attribute = "platform"; System.setProperty("webdriver.gecko.driver", "C:\\Utility\\BrowserDrivers\\geckodriver.exe"); WebDriver driver = new FirefoxDriver(); Capabilities cap = ((RemoteWebDriver) driver).getCapabilities(); System.out.println("Platform is : "+cap.getPlatform().toString()); Map<String, ?> map = cap.asMap(); Object value = map.get(attribute); System.out.println("Key : " + attribute + " Value : "+ value); } }
Console Output:
Platform is : XP Key : platform Value : ANY
The text was updated successfully, but these errors were encountered:
mozilla/geckodriver#902
Sorry, something went wrong.
Appears to be a client side issue, reopening.
@barancev I am sorry, I think initially I tagged a wrong issue reference from the geckodriver queue in the description. Now corrected it. Thanks
1940813
Synchronizing "platform" and "platformName" capability values. Fixes S…
420ce34
…eleniumHQ#4565
No branches or pull requests
Meta -
getPlatform()
method andmap.get("platform")
method returns different results for capabilityPlatform
through geckodriver.cap.getPlatform().toString()
returnsPlatform
asXP
whilemap.get("platform")
returnsPlatform
asANY
Through
895
@andreastt confirmed it's a Java Client issue.OS: Windows 8 Pro, 64 bit
Selenium Version: 3.5.2 (Java)
Selenium Binding: Java
GeckoDriver Version: 0.18.0
Browser: Mozilla Firefox
Browser Version: 55.0.2
Expected Behavior -
getPlatform()
method andmap.get("platform")
method should return same result for capabilityPlatform
through geckodriver.Actual Behavior -
getPlatform()
method andmap.get("platform")
method returns different results for capabilityPlatform
through geckodriver.Steps to reproduce -
Minimal Code Block:
Console Output:
The text was updated successfully, but these errors were encountered: