Telefonica / toolium

Wrapper tool of Selenium and Appium libraries to test web and mobile applications in a single project
Apache License 2.0
115 stars 62 forks source link

Looks like it's not possible to use capabilities like "safari:useSimulator": True #264

Closed DuXspace closed 2 years ago

DuXspace commented 2 years ago

I tried to use capabilities like there https://github.com/appium/appium-safari-driver and it looks like i can't add capabilities like safari:useSimulator to conf file. The only way that i found it's adding them manually like: driver_wrapper.config.set('AppiumCapabilities', 'safari:useSimulator', 'true')

Is there is any way to add this capability to conf file?

rgonalo commented 2 years ago

Hi @DuXspace, ConfigParser does not allow colon in a property name. To allow it in toolium, the colon must be replaced with '___' as explained in goog:loggingPrefs example in Chrome configuration: https://toolium.readthedocs.io/en/latest/browser_configuration.html#id3. In your case, it should work with:

[AppiumCapabilities]
safari___useSimulator: true
DuXspace commented 2 years ago

Thank you for your response!