${EXECDIR}\\DA_data.yaml
Imports a variable file with the given path and optional arguments.
AppiumLibrary | Selenium2Library
Sets the resolution order to use when a name matches multiple keywords.
http://127.0.0.1:4723/wd/hub
platformName=Android
platformVersion=9
deviceName=emulator-5554
automationName=uiautomator2
Opens a new application to given Appium server.
Capabilities of appium server, Android and iOS,
Please check https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/server-args.md
| *Option* | *Man.* | *Description* |
| remote_url | Yes | Appium server url |
| alias | no | alias |
POST http://127.0.0.1:4723/wd/hub/session {"capabilities": {"firstMatch": [{"platformName": "Android", "appium:platformVersion": "9", "appium:deviceName": "emulator-5554", "appium:automationName": "uiautomator2"}]}, "desiredCapabilities": {"platformName": "Android", "platformVersion": "9", "deviceName": "emulator-5554", "automationName": "uiautomator2"}}
Starting new HTTP connection (1): 127.0.0.1:4723
http://127.0.0.1:4723 "POST /wd/hub/session HTTP/1.1" 200 758
Finished Request
Opened application with session id f748b401-7cd1-48b0-84cd-92c2b3407aef
${Ysize}
Get current device height.
GET http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/window/rect {}
http://127.0.0.1:4723 "GET /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/window/rect HTTP/1.1" 200 50
Finished Request
${Ysize} = 1920
${Xsize}
Get current device width.
GET http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/window/rect {}
http://127.0.0.1:4723 "GET /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/window/rect HTTP/1.1" 200 50
Finished Request
${Xsize} = 1080
${X1}
${Xsize}*0.5
Evaluates the given expression in Python and returns the result.
${X1} = 540.0
${Y1}
${Ysize}*0.25
Evaluates the given expression in Python and returns the result.
${Y1} = 480.0
${Y2}
${Ysize}*0.5
Evaluates the given expression in Python and returns the result.
${Y2} = 960.0
${X1}
${Y1}
${X1}
${Y2}
Swipe from one point to another point, for an optional duration.
POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/touch/perform {"actions": [{"action": "press", "options": {"x": 540, "y": 480}}, {"action": "wait", "options": {"ms": 1000}}, {"action": "moveTo", "options": {"x": 540, "y": 960}}, {"action": "release", "options": {}}]}
http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/touch/perform HTTP/1.1" 200 14
Finished Request
趣招亲
3
Waits until `text` appears on current page.
GET http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/source {}
http://127.0.0.1:4723 "GET /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/source HTTP/1.1" 200 76384
Finished Request
xpath=//android.widget.RelativeLayout[@content-desc=\"趣招亲,\"]/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[1]/android.widget.ImageView[1]
Click element identified by `locator`.
Clicking element 'xpath=//android.widget.RelativeLayout[@content-desc="趣招亲,"]/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[1]/android.widget.ImageView[1]'.
POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements {"using": "xpath", "value": "//android.widget.RelativeLayout[@content-desc=\"\u8da3\u62db\u4eb2,\"]/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[1]/android.widget.ImageView[1]"}
http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements HTTP/1.1" 200 139
Finished Request
POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001e-ffff-ffff00000259/click {"id": "00000000-0000-001e-ffff-ffff00000259"}
http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001e-ffff-ffff00000259/click HTTP/1.1" 200 14
Finished Request
1
Pauses the test executed for the given time.
Slept 1 second
xpath=//android.view.View[@text=\"我的\"]
Click element identified by `locator`.
Clicking element 'xpath=//android.view.View[@text="我的"]'.
POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements {"using": "xpath", "value": "//android.view.View[@text=\"\u6211\u7684\"]"}
http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements HTTP/1.1" 200 139
Finished Request
POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001b-0000-13660000018d/click {"id": "00000000-0000-001b-0000-13660000018d"}
http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001b-0000-13660000018d/click HTTP/1.1" 200 14
Finished Request
1
Pauses the test executed for the given time.
Slept 1 second
xpath=//android.view.View[@text=\"微信用户\"]
Click element identified by `locator`.
Clicking element 'xpath=//android.view.View[@text="微信用户"]'.
POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements {"using": "xpath", "value": "//android.view.View[@text=\"\u5fae\u4fe1\u7528\u6237\"]"}
http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements HTTP/1.1" 200 139
Finished Request
POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001b-0000-13010000018d/click {"id": "00000000-0000-001b-0000-13010000018d"}
http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001b-0000-13010000018d/click HTTP/1.1" 200 14
Finished Request
一键登录
3
Waits until `text` appears on current page.
GET http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/source {}
http://127.0.0.1:4723 "GET /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/source HTTP/1.1" 200 38749
Finished Request
GET http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/source {}
http://127.0.0.1:4723 "GET /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/source HTTP/1.1" 200 45147
Finished Request
xpath=//*[@text="我已阅读并同意"]
Click element identified by `locator`.
Clicking element 'xpath=//*[@text="我已阅读并同意"]'.
POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements {"using": "xpath", "value": "//*[@text=\"\u6211\u5df2\u9605\u8bfb\u5e76\u540c\u610f\"]"}
http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements HTTP/1.1" 200 139
Finished Request
POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001b-0000-13a40000018d/click {"id": "00000000-0000-001b-0000-13a40000018d"}
http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001b-0000-13a40000018d/click HTTP/1.1" 200 14
Finished Request
xpath=//*[@text="一键登录"]
Click element identified by `locator`.
Clicking element 'xpath=//*[@text="一键登录"]'.
POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements {"using": "xpath", "value": "//*[@text=\"\u4e00\u952e\u767b\u5f55\"]"}
http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements HTTP/1.1" 200 139
Finished Request
POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001b-0000-13ad0000018d/click {"id": "00000000-0000-001b-0000-13ad0000018d"}
http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001b-0000-13ad0000018d/click HTTP/1.1" 200 14
Finished Request
xpath=//android.view.View[@text=\"180****4975\"]
Click element identified by `locator`.
Clicking element 'xpath=//android.view.View[@text="180****4975"]'.
POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements {"using": "xpath", "value": "//android.view.View[@text=\"180****4975\"]"}
http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements HTTP/1.1" 200 139
Finished Request
POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001b-0000-13d200000157/click {"id": "00000000-0000-001b-0000-13d200000157"}
http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001b-0000-13d200000157/click HTTP/1.1" 200 14
Finished Request
Closes the current application and also close webdriver session.
Closing application with session id f748b401-7cd1-48b0-84cd-92c2b3407aef
DELETE http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef {}
http://127.0.0.1:4723 "DELETE /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef HTTP/1.1" 200 14
Finished Request
All Tests
Dating-agency
Dating-agency.LoginUI
Dating-agency.LoginUI.Login