codeceptjs / codeceptjs/CodeceptJS

I.scrollTo() cause error when locator ignored on mobile devices

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

描述

#### What are you trying to achieve?

`I.scrollTo(0, 1000)` in iphone

#### What do you get instead?

Error message:

```
Malformed type for "xoffset" parameter of command touchScroll
Expected: number
Actual: null

For more info see https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchscroll
```

### Details

* CodeceptJS version: 2.1.3
* NodeJS Version: v8.15.1
* Operating System: maxOS mojave 10.14.6
* WebDriverIO version 5.12.1

https://github.com/Codeception/CodeceptJS/blob/58680c433c0591b37db92117130ce41205919285/lib/helper/WebDriver.js#L1339 is wrong, based on document here, the code `this.browser.touchScroll(locator, offsetX, offsetY)` should be changed to `this.browser.touchScroll(offsetX, offsetY, locator)` .

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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