public AppiumServiceBuilder withCapabilities ( DesiredCapabilities capabilities ) { if ( this . capabilities == null ) { this . capabilities = capabilities ; } else { DesiredCapabilities desiredCapabilities = new DesiredCapabilities ( ) ; desiredCapabilities . merge ( this . capabilities ) . merge ( capabilities ) ; this . capabilities = desiredCapabilities ; } return this ; }
Adds a desired capabilities .