Merge branch 'master' of https://github.com/SciSharp/BotSharp into features/refine-vector-store
This commit is contained in:
commit
0beba35a80
|
|
@ -30,4 +30,5 @@ public interface IWebBrowser
|
|||
Task<BrowserActionResult> SendHttpRequest(MessageInfo message, HttpRequestParams actionParams);
|
||||
Task<BrowserActionResult> GetAttributeValue(MessageInfo message, ElementLocatingArgs location);
|
||||
Task<BrowserActionResult> SetAttributeValue(MessageInfo message, ElementLocatingArgs location);
|
||||
string GetCurrentUrl(MessageInfo message);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,4 +17,11 @@ public partial class PlaywrightWebDriver
|
|||
|
||||
return answer;
|
||||
}
|
||||
public string GetCurrentUrl(MessageInfo message)
|
||||
{
|
||||
var page = _instance.GetPage(message.ContextId);
|
||||
if (page == null)
|
||||
return string.Empty;
|
||||
return page.Url;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue