回答編集履歴

1

locator.scrollIntoViewIfNeededを使うケースを追加

2022/07/30 15:24

投稿

aokiken
aokiken

スコア38

test CHANGED
@@ -1,7 +1,10 @@
1
- 以下のつが思いつきました
1
+ 以下の3つが思いつきました
2
2
 
3
3
  mouse-wheelを使う
4
4
  https://playwright.dev/docs/api/class-mouse#mouse-wheel
5
+
6
+ locator.scrollIntoViewIfNeededを使う
7
+ https://playwright.dev/docs/api/class-locator#locator-scroll-into-view-if-needed
5
8
 
6
9
  jsを実行してscrollさせる
7
10
  ```typescript