Example #1
0
 public Task ToHaveTitleAsync(Regex titleOrRegExp, PageAssertionsToHaveTitleOptions options = null) =>
 ExpectImplAsync("to.have.title", ExpectedRegex(titleOrRegExp, new() { NormalizeWhiteSpace = true }), titleOrRegExp, "Page title expected to be", ConvertToFrameExpectOptions(options));
Example #2
0
 public Task ToHaveTitleAsync(string titleOrRegExp, PageAssertionsToHaveTitleOptions options = null) =>
 ExpectImplAsync("to.have.title", new ExpectedTextValue()
 {
     String = titleOrRegExp, NormalizeWhiteSpace = true
 }, titleOrRegExp, "Page title expected to be", ConvertToFrameExpectOptions(options));