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 ?
|
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.aspxThanks!
|