SeleniumSessionIdErrorについて

Exception: Selenium::WebDriver::Error::InvalidSessionIdError

Selenium WebDriver Error: invalid session id

invalid session id

----

サリー化アロー関数

この記事

We are using a library to cache api response during test after they are made for the first time.

The problem is, the driver sends a request to get a session id. This is why the first time the tests were passing. The library cached the response from the driver which had the same session id everytime, hence the error from chrome.

If you're using such libraries (VCR, ephemeral_response) and get similar error this is something you might want to investigate

当たりが原因か?

paramaterのlogin-idが取得できていないこと。

1...unable to find field "login-id" that is not disabled (Capybara::Element not found)
acount_edit_password 342...unknown error: session deleted because of page crash
from tab crashed
session info : headless chrome=87.0.4280.88 selenium::webdriver::error::unknownerror3...invalid session id selenium::webdriver::error::invalidsessioniderror

-----

webdriverのoptionm設定情報

あるいはbrowserを小さくすること

テスト実行
APP_HOSTやDB_HOSTに127.0.0.1やlocalhostを入れると試験に失敗していたが、

hostsにドメイン名を入れて、そのドメイン名でアクセスできるようにすると試験が実行


  409  git branch

  410  git push origin +develop

  411  git fetch

  412  git branch feature/UIMS-xx

  413  git push origin develop

  414  git branch

  415  git push origin feature/UIMS-xx

  416  history

  417  git log

  418  git push origin +develop

  419  git push origin feature/UIMS-xx

Next Post Previous Post
No Comment
Add Comment
comment url