-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow overwriting
PageLoadStrategy
in wasm tests (#1268)
* Add the arg. * Feedback
- Loading branch information
1 parent
9a7efc6
commit f20e52f
Showing
5 changed files
with
61 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...Microsoft.DotNet.XHarness.CLI/CommandArguments/WASM/Arguments/PageLoadStrategyArgument.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
namespace Microsoft.DotNet.XHarness.CLI.CommandArguments.Wasm; | ||
|
||
using OpenQA.Selenium; | ||
using System; | ||
|
||
internal class PageLoadStrategyArgument : EnumPageLoadStrategyArgument | ||
{ | ||
private const string HelpMessage = | ||
$@"Decides how long WebDriver will hold off on completing a navigation method. | ||
NORMAL (default): Does not block WebDriver at all. Ready state: complete. | ||
EAGER: DOM access is ready, but other resources like images may still be loading. Ready state: interactive. | ||
NONE: Does not block WebDriver at all. Ready state: any."; | ||
|
||
public PageLoadStrategyArgument(PageLoadStrategy defaultValue) | ||
: base("pageLoadStrategy=", HelpMessage, defaultValue) | ||
{} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters