G.browser.GetBrowser().MainFrame.ExecuteJavaScriptAsync("$(document).height()");

 

 

 

// Get Document Height  
var task = frame.EvaluateScriptAsync("(function() { var body = document.body, html = document.documentElement; return  Math.max( body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight ); })();", null);

task.ContinueWith(t =>  
{  
    if (!t.IsFaulted)  
    {  
        var response = t.Result;  
        EvaluateJavaScriptResult = response.Success ? (response.Result ?? "null") : response.Message;  
    }  
}, TaskScheduler.FromCurrentSynchronizationContext());  

 

相关文章:

  • 2022-02-03
  • 2022-12-23
  • 2021-11-18
  • 2021-06-22
  • 2021-12-25
  • 2022-01-08
  • 2021-12-12
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-30
  • 2021-11-30
  • 2021-12-25
  • 2021-08-30
  • 2022-12-23
相关资源
相似解决方案