javascript - CefSharp: EvaluateScriptAsync hanging? -


i visting twitter profile page , trying detect if logged in user has followed profile they're viewing, can tell me why followed() method hanging , not returning anything? i've waited 10 minutes return hasn't?

i can't imagine situation take 10 minutes process must stopping returning something, can help?

private bool followed() {     javascriptresponse js = evaluatescript("document.getelementsbyclassname('profilenav-item--useractions')[0].children[0].children[0].classname");     return !js.result.tostring().contains("not-following"); }  javascriptresponse evaluatescript(string script) {     var task = _browser.evaluatescriptasync(script);     task.wait();     return task.result; } 

i think js.result or js may possibly null, why be? that's real question here.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -