codeceptjs / codeceptjs/CodeceptJS

Performing swipe action on iOS selector gives error

未关闭
#1,715 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
4.2k
派生
757
平均合并
2 天 9 小时
30 天内合并 PR
16

描述

#### What are you trying to achieve?
I am trying to perform swipe action on iOS Locator

#### What do you get instead?
When I try to perform swipe it gives an error

> Provide console output if related. Use `--verbose` mode for more details.

```bash
# p2019-06-12T15:49:20.895Z DEBUG webdriverio: command getLocation was called on an element ("~aeMenu") that wasn't found, waiting for it...
```

> Provide test source code if related

```js
sidemenu='~aemenu';
I.swipeLeft(sidemenu);
```

### Details

* CodeceptJS version: 2.1.4
* Operating System: iOS
* WebDriverIO: 5.10
* Configuration file:
const desiredCapabilities = {
platformName: 'iOS',
deviceName: 'iPad Air',
platformVersion: '12.1',
app: '',
automationName: 'XCUITest',
sendKeyStrategy: 'grouped',
waitForAppScript: 'true;',
appName: '',
locationServicesAuthorized: true,
fullReset: false,
noReset: false,
newCommandTimeout: 3600,
isHeadless: false,
};

const helper = {
platform: 'iOS',
waitForTimeout: 15000,
desiredCapabilities: {
...desiredCapabilities,
},
};

const airHelper = {
...helper,
desiredCapabilities: {
...desiredCapabilities,
platformVersion: '12.1',
deviceName: 'iPad Air',
wdaLocalPort: 8100,
},
};

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。