简体   繁体   中英

Fetch text UIColor in XCUITest

I am writing UI tests from my watchOS project and currently looking how to fetch UIColor attribute from from UILabel and UIButton in XCUIText? Maybe someone knows how to do it?

XCUITest is color-blind. You can either use a snapshot comparison tool or in your application store the color in the accessibility identifier and update it as it changes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM