简体   繁体   English

在appium中获取文本颜色

[英]Getting text color in appium

Is there any method to get text color in appium (lets say android apps). 是否有任何方法可以在appium中获取文本颜色(比如Android应用程序)。 And also I want to assert that the text color is red/blue/green in color. 而且我想断言文本颜色是红色/蓝色/绿色。 I use ruby to write the scripts. 我用ruby来编写脚本。

There is no way to get text color in Appium for native iOS/Android apps, simply because UIAutomator2/XCUITest do not expose this type of data. 由于UIAutomator2 / XCUITest不公开此类数据,因此无法在Appium中获取原生iOS / Android应用程序的文本颜色

Appium is not a tool for visual testing, but is for functional testing. Appium不是用于视觉测试的工具,而是用于功能测试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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