2
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.

Codeceptionをサーバー上で安定して可動させるためのメモ

Last updated at Posted at 2019-03-03

概要

Codeceptionがサーバー上で中々安定して可動しなかったので備忘録として

要素が見つからない

  • waitForElementを使う
    要素が見つかるまで待機してみる。
    $I->waitForElement('.hoge', 5);

要素がクリックできない

  • waitForElementClickableを使う
  • scrollToを使う

要素がクリックできるまで待機してみる。一旦スクロールさせて表示位置まで移動してみる。

    $I->scrollTo('.hoge', 0, 0);
    $I->waitForElementClickable('.hoge', 5);

上記の操作を行うだけでもサーバー上でだいぶ安定して可動するようになりました。

参考

seleniumにてButtonがクリックできない時の対処法

2
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
2
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?