Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add "Wait for DOM inactivity" keyword which waits until page is fully loaded/rendered

オープン
#1,764 コメント 4 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript, python
領域
testing

調査の方向性

この Issue では、SeleniumLibrary の新しいキーワード Wait for DOM Inactivity とブラウザー側の Mutation Observer API が挙げられていますが、リポジトリのファイルやテストについては触れられていません。まず、既存の wait キーワードのエントリーポイントとそのテストを見つけてください。動的なページでそのキーワードを利用でき、その動作がテストでカバーされれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Prerequisites

For issues

Steps to reproduce the issue

N/A

Error messages and additional information

N/A

Expected behavior and actual behavior

N/A

Environment

N/A

Feature Request Background

In an effort to improve page performance, modern web apps load initial content, then load the rest of the data on the page via XHR requests. The page continues to mutate until all additional data is loaded. This is a major problem for old frameworks like Selenium, which simply wait until the initial page loads but do not wait until the content on the page fully loads.

Examples of this loading style can be found on sites like:
airbnb.com
amazon.com
buzzfeed.com
yahoo.com

A workaround we've found extremely useful at my company is to leverage the relatively new Mutation Observer api (docs here).

This mutation observer can be configured to fire a callback every time a node on the DOM is added or mutated. This can be used to detect when the page finally calms down and is ready for the automated test to continue.

Feature Request

My feature request, which I will implement, is to leverage this mutation observer in a new keyword "Wait for DOM Inactivity", which the user can call to wait on the XHR requests on dynamic pages (like those listed above) to finish.

Some key scenarios where this can be used are:

  • pretty much any automated test which tests against a single page app
  • whenever a button click opens & loads a modal
  • on highly performant, dynamic pages which heavily leverage XHR requests (like those listed above)

Let me know if this interests you, I would be more than happy to implement this. I have used SeleniumLibrary extensively and love the library, and would love to contribute to it in any way.

Thank you for reading my request!

主要言語
Python
スター
1.5k
フォーク
787
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

robotframework/SeleniumLibrary のほかの issue

robotframework/SeleniumLibrary の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。