How to check if element exists in html cefsharp
I tried this but it throws an exception that the response is null
string getElementByName = @"document.getElementsByName(""media"")[0];";
private async void jsgetval(string script)
{
responseResult = "";
JavascriptResponse response = await ytBrowser.EvaluateScriptAsync(script);
responseResult = response.Result.ToString();
Console.WriteLine(responseResult);
}