TA的每日心情 | 无聊 5 天前 |
---|
签到天数: 530 天 连续签到: 2 天 [LV.9]测试副司令
|
1测试积点
- from appium import webdriver
- desired_caps = {}
- desired_caps['platformName'] = 'Android'
- desired_caps['platformVersion'] = '6.0'
- desired_caps['deviceName'] = 'OPPO A57'
- #desired_caps['app'] = 'D:/'
- desired_caps['appPackage'] = 'com.android.calculator2'
- desired_caps['appActivity'] = '.Calculator'
- print("android")
- driver = webdriver.Remote('http://127.0.0.1:4724/wd/hub',desired_caps)
- print("yilianjie")
- driver.find_element_by_name("1").click
- driver.find_element_by_name("5").click
- driver.find_element_by_name("9").click
- driver.find_element_by_name("9").click
- driver.find_element_by_name("9").click
- driver.find_element_by_name("+").click
- driver.find_element_by_name("6").click
- driver.find_element_by_name("6").click
- driver.find_element_by_name("=").click
- driver.qiut()
- File "D:\Program Files\Python\lib\socket.py", line 586, in readinto
- return self._sock.recv_into(b)
复制代码- ConnectionResetError: [WinError 10054]
复制代码 远程主机强迫关闭了一个现有的连接。
|
|