Welcome Guest Search | Active Topics | Sign In | Register

Web Browser refresh document after client side updates Options
Clarence
Posted: Saturday, March 27, 2021 11:11:00 PM
Rank: Member
Groups: Member

Joined: 9/29/2019
Posts: 13
Hi,

I am trying to automate some process by reading the some text using getElementsByClassName("xxx"). However, I have a search box which updates (client side script) the tag that I am looking at. I can see that the tag/innertext is being updated by using Chrome Inspection, but if I use

webView.EvalScript("document.getElementsByClassName('XXX')")

and read the "InnerText", it is still the previous value. Is there some way that I can 'refresh' and capture the new innertext ?
eo_support
Posted: Monday, March 29, 2021 10:20:27 AM
Rank: Administration
Groups: Administration

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

We do not cache such values. So InnerText should always be the current value. So the issue might be related to your JavaScript. You can use the built-in debugger to exam/debug the page in question:

https://www.essentialobjects.com/doc/webbrowser/advanced/debug.aspx

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.