Update method to sync
This commit is contained in:
parent
4b6d3a0059
commit
e9806537bd
|
|
@ -30,5 +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);
|
||||
Task<string> GetCurrentUrl(MessageInfo message);
|
||||
string GetCurrentUrl(MessageInfo message);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ public partial class PlaywrightWebDriver
|
|||
|
||||
return answer;
|
||||
}
|
||||
public async Task<string> GetCurrentUrl(MessageInfo message)
|
||||
public string GetCurrentUrl(MessageInfo message)
|
||||
{
|
||||
var page = _instance.GetPage(message.ContextId);
|
||||
if (page == null)
|
||||
|
|
|
|||
Loading…
Reference in a new issue