codeceptjs / codeceptjs/CodeceptJS

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

オープン
#1,860 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
4.2k
フォーク
757
平均マージ
2日 9時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。