51Testing软件测试论坛

标题: appium1.6.3 发布支持 toast 识别 [打印本页]

作者: 巴黎的灯光下    时间: 2017-6-28 15:38
标题: appium1.6.3 发布支持 toast 识别
iOS

Fix issue where we might try and uninstall an ssl cert from a real device where this isn't sensible

Fix another issue with acceptSslCerts where it might potentially miss the correct sim UDID

iOS - XCUITest

主要是更新了wda的版本, 以及xpath的性能提升. 其实如果想用新版本绕过appium直接用wda也没啥.

Upgrade version of WebDriverAgent used. Includes following updates:

Improve xpath query performance

Verify predicates

Fix crash for some xpath selectors

Decorate proxied getSession response with Appium's capabilities (fixes issues with clients that call getSession to determine server capabilities and are confused by WDA's non-standard response) (#7480)

Fix issue with starting XCUITests on a real device, due to changes in WDA that invalidated our startup detection logic. (#7313)

Allow connecting to an already-running WebDriverAgent through the webDriverAgentUrl capability, rather than starting our own

Android

Fix bug where we would attempt to get target SDK version from manifests even when they might not include it. (#7353)

Actually pass the acceptSslCerts capability to the underlying automation so that it can have an effect (#7326)

Updated permission granting logic to speed up permission granting by doing it in bulk rather than one at a time (#7493)

Hide the new permission granting logic behind an autoGrantPermissions capability which doesn't attempt to grant permissions unless it's true (#7497)

Android - Uiautomator2

这个是之前很多人关注的功能, 大家可以测试下看看. selendroid早就知道了, 这算是uiautomator2第一次支持吧

Add ability to verify TOAST messages (these can't be interacted with, only text retrieval allowed)

Windows

支持windows的自动化, 比上版本增强了

Actually upgrade WinAppDriver to 0.7 (#7445). Includes following updates:

Click on arbitrary elements

Support for sendKeys modifiers

Various bugfixes

Added GET /orientation

Added support for WPF apps


作者: 草帽路飞UU    时间: 2017-6-28 16:15
刚装了,运行就报错:
Unable to start WebDriverAgent: Error: Command 'idevicedate -u a58bdd10033efffd5261d606ec221744c973b6d9' exited with code 255
有没有遇到这种情况的
作者: 八戒你干嘛    时间: 2017-6-28 16:16
所以验证toast是用uiautomator2咯,印象中uiautomator2是编成APK执行的,和uiautomator的jar方式不一样的,所以在capabilities设置上会不一样了吗?
作者: 巴黎的灯光下    时间: 2017-6-28 16:16
八戒你干嘛 发表于 2017-6-28 16:16
所以验证toast是用uiautomator2咯,印象中uiautomator2是编成APK执行的,和uiautomator的jar方式不一样的, ...
  1. import { AndroidUiautomator2Driver } from `appium-uiautomator2-driver`

  2. let defaultCaps = {
  3.   app: 'path/to/your.apk',
  4.   deviceName: 'Android',
  5.   platformName: 'Android',
  6.   automationName: 'uiautomator2'
  7. };

  8. let driver = new AndroidUiautomator2Driver();
  9. await driver.createSession(defaultCaps);
复制代码

作者: 小爸爸    时间: 2017-6-28 16:17
python client没有对应更新吧




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2