问题描述
按类名使用排毒匹配器时,即by.type(className)
https://github.com/wix/Detox/blob/master/docs/APIRef.Matchers.md#bytypeclassname
是否可以根据测试运行的平台(ios / android)更改类名
例如element(by.type(className))
变为:
-
element(by.type('android.widget.ImageView'))
在Android上 -
element(by.type('RCtimageView'))
在iOS上