UrlAfterAction

This commit is contained in:
Haiping Chen 2024-12-25 21:00:07 +00:00
parent 67d4342f6c
commit d041d42350
2 changed files with 5 additions and 0 deletions

View file

@ -8,6 +8,10 @@ public class BrowserActionResult
public string? StackTrace { get; set; }
public string? Selector { get; set; }
public string? Body { get; set; }
/// <summary>
/// Page open in new tab after button click
/// </summary>
public string? UrlAfterAction { get; set; }
public bool IsHighlighted { get; set; }
public override string ToString()

View file

@ -9,6 +9,7 @@ public partial class PlaywrightWebDriver
if (result.IsSuccess)
{
await DoAction(message, action, result);
result.UrlAfterAction = _instance.GetPage(message.ContextId)?.Url;
}
return result;
}