Skip to content

Commit

Permalink
Updating .NET tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Mar 17, 2020
1 parent b78cf1b commit b3a0d62
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dotnet/test/common/ByTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ public void ShouldUseXPathToFindByNameIfDriverDoesNotImplementFindsByName()
Assert.AreEqual(mockElement.Object, element);
}

public interface IAllDriver : IFindsById, IFindsByLinkText, IFindsByName, IFindsByXPath, ISearchContext
public interface IAllDriver : IFindsElement, IFindsById, IFindsByLinkText, IFindsByName, IFindsByXPath, ISearchContext
{
}

public interface IOnlyXPath : IFindsByXPath, ISearchContext
public interface IOnlyXPath : IFindsElement, IFindsByXPath, ISearchContext
{
}
}
Expand Down
2 changes: 1 addition & 1 deletion dotnet/test/common/ClearTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void ShouldBeAbleToClearTextInput()
[Test]
public void ShouldBeAbleToClearUrlInput()
{
ShouldBeAbleToClearInput(By.Name("url_input"), "http://selenium.dev/");
ShouldBeAbleToClearInput(By.Name("url_input"), "https://selenium.dev/");
}

[Test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public DevChannelChromeDriver(ChromeDriverService service, ChromeOptions options

public static ChromeOptions DefaultOptions
{
get { return new ChromeOptions() { BinaryLocation = @"C:\Program Files (x86)\Google\Chrome Dev\Application\chrome.exe" }; }
get { return new ChromeOptions() { BinaryLocation = @"C:\Program Files (x86)\Google\Chrome Dev\Application\chrome.exe", AcceptInsecureCertificates = true }; }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,10 @@ public StableChannelChromeDriver(ChromeDriverService service, ChromeOptions opti
: base(service, options)
{
}

public static ChromeOptions DefaultOptions
{
get { return new ChromeOptions() { AcceptInsecureCertificates = true }; }
}
}
}

0 comments on commit b3a0d62

Please sign in to comment.