protected static Capabilities substituteMobilePlatform ( Capabilities originalCapabilities , String newPlatform ) { DesiredCapabilities dc = new DesiredCapabilities ( originalCapabilities ) ; dc . setCapability ( PLATFORM_NAME , newPlatform ) ; return dc ; }
Changes platform name and returns new capabilities .