访问对象隐藏/不可用的方法或实例(java) [英] Access to object hidden/unavailable methods or instances (java)

查看:59
本文介绍了访问对象隐藏/不可用的方法或实例(java)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以这只是一个声明。我不知道它是否可行。



这个问题与Android Espresso有关。





对于Espresso大师,您知道我们没有任何方法可以通过espreso访问contentDescription。对吗?





所以我有什么方法可以让Element说出它是VIEW的一个实例。我需要访问视图的所有实例和方法,这些实例和方法通常对最终用户不可用。我该怎么做?



我的尝试:



我没有为这件事做太多尝试。找不到热门网站上任何东西。

解决方案
获取元素的含量在描述咖啡测试 [ ^ ]。 Google很快发现了这一点。


So here is just an statement. I don't know if its practically possible.

The question is related to Android Espresso.


For the people who are masters in Espresso, you know we don't have any method to access contentDescription via espreso. Right?


So is there any way I can get that Element lets say its an instance of VIEW. I need to access all of the instances and methods of the view which are not normally available to end user. How would i do that?

What I have tried:

I haven't tried much for this thing. Couldn't find anything on popular websites.

解决方案

Getting the content description of an element in espresso test[^]. Google found this very quickly.


这篇关于访问对象隐藏/不可用的方法或实例(java)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆