Welcome Guest Search | Active Topics | Sign In | Register

Evalscript works but I need to reflesh page to see if it works Options
alihuseyin
Posted: Tuesday, January 24, 2017 4:32:16 AM
Rank: Member
Groups: Member

Joined: 3/19/2015
Posts: 10
Hello,

My evalscript code which is
Quote:
webView1.EvalScript("document.querySelectorAll(\"a[class='mrm _42ft _4jy0 _4jy4 _517h _51sy']\")[0].click();");
WebView.DoEvents();


works but I need to reflesh to page in order to see if it works.

Simply I am trying to be a member of a group in fb and this code works for it but as i said i cant see it after my evalscript fires.

Shoul i add anything ? Can you suggest me what should i do? Thanks.
eo_support
Posted: Tuesday, January 24, 2017 8:33:10 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

I am not sure what you meant by "I need to refresh to page in order to see if it works". You can try to load the same page in Google Chrome browser, then go to the Developer Tools' script console window to run the same script you pass to EvalScript. If that produces the same result, then WebView.EvalScript is working properly.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.