0
var about = await Page.RunAndWaitForPopupAsync(async () =>
        {
            await Page.Locator("text=About").ClickAsync();
        });
        await about.WaitForLoadStateAsync();
        string url = about.Url.ToString();
        bool v = String.Equals(url, "https://testsite/about");
        Console.WriteLine(v);

I am trying to compare the URL of a popout page using playwright to a string, however it alwyas returns a passed test even when the URL's do not match

Fomnus
  • 85
  • 1
  • 2
  • 7

0 Answers0