GetListRedirectUrlAsync

Parent Previous Next

GetListRedirectUrlAsync

Description: the method returns a list of redirects that occurred when the page was loaded

Syntax: GetListRedirectUrlAsync()

Return value: List


Example:

Tester tester = new Tester(browserForm);

await tester.TestBeginAsync();

await tester.GoToUrlAsync("https://yandex.ru/", 5);


List<string> redirects = await tester.GetListRedirectUrlAsync();

foreach (string url in redirects)

{

       tester.ConsoleMsg(url);

}

Created with the Personal Edition of HelpNDoc: What is a Help Authoring tool?