How to do it in andriod?

in android project use minifyEnabled, create in package androidx.test.uiautomator, same with lib androidx.test.uiautomator:uiautomator:2.2.0。

how to do can WBySelector Obfuscate?

Hi there,

To clarify, would you like to use name obfuscation to obfuscate the androidx.test.uiautomator.WBySelector class?

Proguard will automatically obfuscate all names (including classes) unless it is specified within a keep rule. Thus, if the class is not being obfuscated, there is likely a keep rule preventing its obfuscation. I recommend using Proguard Playground to automatically understand if there are keep rules preventing its obfuscation.