Closed liufeng0504 closed 4 years ago
This is the translated issue comment: @xudafeng
You can refer to this API:
https://github.com/macaca-sample/sample-nodejs/blob/master/macaca-test/wd-extend.js#L34
@xudafeng @macaca-bot 非常感谢你们的回复。我的确是参考样例代码写的,根据elementName去查找控件也是没有问题的,问题出在了请求上,第一个账号输入框的一系列操作都没有问题的,但是找到了密码框后,clear操作就出现了问题,返回{"status":15,"sessionId":"","value":""} 。如果把对两个输入框的操作调换个顺序,则也是第二个操作会失败,我不知道问题出在了哪里,往指教。
UI页面
测试程序
This is the translated issue comment: @liufeng0504
@xudafeng @ macaca-bot very grateful for your reply. I did refer to the sample code is written, according to elementName to find the controls is not the problem, the problem lies in the request, a series of operations on account of the input box, no problems, but later found the password box, clear operation there is a problem, return { "status": 15, "sessionId": "", "value": ""}. If the operation of the two input boxes swap sequence, the second operation will also fail, I do not know where the problem lies, to advise. ! [Image] (https://user-images.githubusercontent.com/16302205/87841319-24413b00-c8d7-11ea-8153-b7d3085c552a.png)
@liufeng0504
可能出问题的是对当前元素设置 text,或者键盘操作,要继续排查了。
This is the translated issue comment: @xudafeng
@ Liufeng0504
May be a problem it is to set the text, or keyboard operation of the current element, to continue the investigation.
Macaca Version: 2.2.0
Macaca Doctor Logs: macaca-doctor version: 2.0.18
Node.js checklist:
node env: /usr/local/bin/node node version: v12.16.1
iOS checklist:
macOS version: 10.15.5 Xcode Command Line Tools is ready, version: 2373. xcodebuild version: 11.5 iproxy[usbmuxd] is installed at:
/usr/local/bin/iproxy
ios_webkit_debug_proxy is installed at:/usr/local/bin/ios_webkit_debug_proxy
Android checklist:
JAVA version is
1.8
JAVA_HOME is set to/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home
ANDROID_HOME is set to/Users/fht360/Library/Android/sdk
Platforms is set to/Users/fht360/Library/Android/sdk/platforms/android-28
ADB tool is set to/Users/fht360/Library/Android/sdk/platform-tools/adb
gradle is installed, version: 4.7Installed driver list:
android: 2.1.0 location: /usr/local/lib/node_modules/macaca-android
chrome: 1.1.1 location: /usr/local/lib/node_modules/macaca-chrome
electron: 7.0.3 location: /usr/local/lib/node_modules/macaca-electron
ios: 2.0.36 location: /usr/local/lib/node_modules/macaca-ios
Operate System: macOS 10.15.5
Programming Language: node