Issues-321
This commit is contained in:
parent
d5b74bf7ea
commit
dcd3fc5ea9
|
|
@ -2,6 +2,7 @@ namespace BotSharp.Abstraction.Browsing.Models;
|
|||
|
||||
public class BrowserActionResult
|
||||
{
|
||||
public int ResponseStatusCode { get; set; }
|
||||
public bool IsSuccess { get; set; }
|
||||
public string? Message { get; set; }
|
||||
public string? StackTrace { get; set; }
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ public partial class PlaywrightWebDriver
|
|||
await Task.Delay(args.WaitTime * 1000);
|
||||
}
|
||||
|
||||
result.ResponseStatusCode = response.Status;
|
||||
if (response.Status == 200)
|
||||
{
|
||||
// Disable this due to performance issue, some page is too large
|
||||
|
|
@ -71,7 +72,7 @@ public partial class PlaywrightWebDriver
|
|||
result.IsSuccess = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
result.Message = response.StatusText;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue