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 摘要。