在docker中进行硒测试时,总是会出现超时错误。但是我们通过VS在本地系统中运行。
实际行为:
Starting web application. Log found at: .test-results/server.log
Starting selenium server... started - PID: 790
[0 Smoke Test] Test Suite
=============================
Running: can login with test user
✖ Timed out while waiting for element <.form-login> to be present for 10000 milliseconds. - expected "visible" but got: "not found"
at Object.exports.command (/app/BlogPlayground/BlogPlayground.E2ETest/commands/login.js:6:10)
FAILED: 1 assertions failed (11.902s)
[Articles Test] Test Suite
==============================
✖ Timed out while waiting for element <.form-login> to be present for 10000 milliseconds. - expected "visible" but got: "not found"
at Object.exports.command (/app/BlogPlayground/BlogPlayground.E2ETest/commands/login.js:6:10)
[Login Neg Test] Test Suite
===============================
✖ Timed out while waiting for element <.form-login> to be present for 10000 milliseconds. - expected "visible" but got: "not found"
at Object.exports.command (/app/BlogPlayground/BlogPlayground.E2ETest/commands/login.js:6:10)