0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Home

Last updated at Posted at 2020-03-03

Python

その他

SPA のパフォーマンス測定
あるボタンを押下してから、次に押す要素が特定の状態(押下可能など)になるまでの時間を測ればよいかも♪
Seleniumで待機処理するお話

「SPA window.performance.timing」で検索↓
SPA(Single Page Web Application)のパフォーマンスを評価する
Measuring and Optimizing Performance of Single-Page Applications (SPA) Using RUM

# ファイル内の文字列を検索(ディレクトリ内を再起的に検索)
$ grep -Iirn hogehoge .
driver.execute_script('for (var len = 0; len < 2; ) { len = document.getElementsByClassName(\'checkin__radio\').length; console.log(len);}')
driver.execute_script('document.getElementsByClassName(\'checkin__radio\')[1].click();')
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?