私はテストを書くことのJavaとセレンを使用しています。私のテストで何度も何度もページやその一部が何かをロードするまで待たなければなりません。荷物が終わるまで待っていたい。私はこれらの2つを見つけました:何までテストを停止して待機はもうウェブページで起こっている
1) pageLoadTimeout
2) setScriptTimeout
しかし私はそれらの正確な違いは、私が必要なものであるかどうかは分かりません。
setScriptTimeout: Sets the amount of time to wait for an asynchronous script to finish execution before throwing an error. If the timeout is negative, then the script will be allowed to run indefinitely.
と
pageLoadTimeout: Sets the amount of time to wait for a page load to complete before throwing an error. If the timeout is negative, page loads can be indefinite.
を、私は本当にそれを取得しないでください: 文書は述べています。
私が必要とするのは、Webページで何も起こっていない限り、テストを中止することです。
@ルイスあなたは答えをお願いしますか? –