rose specs
rose specs

Reputation: 1225

How do I determine which platform a specific detox test is running on?

When using detox matcher by class name i.e. by.type(className) https://github.com/wix/Detox/blob/master/docs/APIRef.Matchers.md#bytypeclassname

Is it possible to change the classname depending on the platform the test is running on (ios/android)

e.g. element(by.type(className)) becomes:

Upvotes: 1

Views: 1710

Answers (1)

Related Questions