macaca icon indicating copy to clipboard operation
macaca copied to clipboard

Webview真机测试时使用.source()获取到的是一个JSON,请问怎么才能获取HTML?

Open GeorgeZh opened this issue 9 years ago • 4 comments

{ tree: { bounds: '{{0, 0}, {375, 667}}', isEnabled: '1', isVisible: '1', children: [ [Object], [Object] ], rect: { y: 0, x: 0, width: 375, height: 667 }, value: null, label: 'M部落', type: 'Application', name: 'M部落', rawIdentifier: null } }

GeorgeZh avatar Dec 27 '16 08:12 GeorgeZh

还有,我使用driver.webview()时会报错“is not a function”

GeorgeZh avatar Dec 27 '16 10:12 GeorgeZh

Error: [execute("document.getElementById('classroom')")] Error response status: 1

GeorgeZh avatar Dec 27 '16 11:12 GeorgeZh

Error: [contexts()] Not JSON response,求救~~

GeorgeZh avatar Dec 28 '16 02:12 GeorgeZh

.source 多看文档,理解wd语义

xudafeng avatar Dec 28 '16 07:12 xudafeng