Returning null when key is not found
This commit is contained in:
Родитель
d7bfd78f66
Коммит
28b262b373
|
@ -17,7 +17,7 @@
|
|||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<OutputPath>\\10.247.233.94\A11y\bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
|
@ -85,4 +85,4 @@
|
|||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
</Project>
|
|
@ -11,7 +11,7 @@ namespace Microsoft.Edge.A11y
|
|||
/// </summary>
|
||||
internal class EdgeStrategy : TestStrategy
|
||||
{
|
||||
public EdgeStrategy(string repositoryPath = "https://cdn.rawgit.com/DHBrett/AT-browser-tests/gh-pages/test-files/", string fileSuffix = ""){
|
||||
public EdgeStrategy(string repositoryPath = "https://rawgit.com/DHBrett/AT-browser-tests/gh-pages/test-files/", string fileSuffix = ""){
|
||||
_driverManager = new DriverManager(TimeSpan.FromSeconds(10));
|
||||
System.Threading.Thread.Sleep(TimeSpan.FromSeconds(2));//Wait for the browser to load before we start searching
|
||||
_RepositoryPath = repositoryPath;
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace Microsoft.Edge.A11y
|
|||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("Code " + key + " was not found.");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче