UrlAfterAction
This commit is contained in:
parent
67d4342f6c
commit
d041d42350
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue