AirtestProject / AirtestIDE

223 stars 38 forks source link

poco有什么方法可以拿到toast #150

Open XedGo opened 6 years ago

XedGo commented 6 years ago

waiting....

XedGo commented 6 years ago

现在用的是ocr的方式,弹出toast的时候截图,然后给百度ocr识别,然后返回json。 判断ocr的文字是否在json里面就行了

adolli commented 6 years ago

toast弹出的时间就几秒,在这几秒内通过UI检视到是非常不稳定的。如果抓图然后ocr的话速度可能非常不理想,这样也不能保证稳定。 我考虑下能否通过android java api去检测到toast存在。

XedGo commented 6 years ago

可以参考一下uiautomator2 https://testerhome.com/topics/12375

adolli commented 6 years ago

多谢提示,我们尽快在下个版本更新上这部分用法

jixiang-zhang commented 6 years ago

这个api大概啥时候会搞出来

adolli commented 6 years ago

大家不要紧张,目前开发任务过多,我们正在排期。

kebbs commented 5 years ago

强烈需求这个功能

VVictorWang commented 5 years ago

强烈需求+1

Coande commented 5 years ago

半年过去了,有进展吗?

sunqi513 commented 5 years ago

有进展么

loneyao commented 5 years ago

toast现在可以获取了吗?

loneyao commented 5 years ago

现在实现了toast的获取了吗?

wohsj110 commented 5 years ago

现在实现了toast的获取了吗? 有进展吗?

SunnyGGEx commented 5 years ago

现在实现了toast的获取了吗 ? 有进展吗 ? Appium 通过 xpath 是可以的,供参考。

chesley666 commented 4 years ago

年底灵魂追问:有进展了吗

Chersh-Pan commented 4 years ago

同问,有实现获取toast了吗?

yaming116 commented 4 years ago

https://github.com/yaming116/PocoService.apk/releases/tag/1.0.0 临时方案,需要的可以关注下 @XedGo @Chersh-Pan

e1ch commented 4 years ago

https://github.com/yaming116/PocoService.apk/releases/tag/1.0.0 临时方案,需要的可以关注下 @XedGo @Chersh-Pan

可以詢問一下怎麼調用呢?謝謝。

yaming116 commented 4 years ago

@e1ch 关注一下这里 https://github.com/AirtestProject/Poco/pull/358 ,目前需要修改代码获取到poco的端口,然后直接通过http即可获取toast信息, 格式如下: ip:10080//toast

qsjh898 commented 3 years ago

两年过去了,有比较官方的方案了吗?

Sarahlunar commented 3 years ago

什么时候能提供获取toast的方法呀

liucong233 commented 3 years ago

2021了,有官方API了吗

zuiqingfengyang commented 2 years ago

添加了那4行代码,使用request请求的时候会报错拒绝连接,是我使用方式错了吗?可以贴下实际使用的代码或者注意事项吗AirtestProject/Poco#358 @yaming116

zuiqingfengyang commented 2 years ago

可以参考一下uiautomator2 https://testerhome.com/topics/12375

airtest和uiautomator2不能共存执行。。。。。

lysf0515 commented 8 months ago

2024 年了,有方案了吗

ajax0420 commented 1 week ago

快年底了,有新方案嗎?