thqby / ahk2_lib

MIT License
197 stars 26 forks source link

Is there a limit to the Page Evaluate value? #22

Closed sousvideonlow closed 10 months ago

sousvideonlow commented 12 months ago

VarSetStrCapacity(&variable, 5120000) Page := xCh.GetPageBy("url", "someurl","contains") variable:=Page.Evaluate("document.querySelectorAll('#someid')[0].innerText")["value"]

Variable seems to be truncated. If I open developer tools and run in console

document.querySelectorAll('#someid')[0].innerText

I get the full string which is about 100KB of text.

thqby commented 12 months ago

The Chrome DevTools Protocol (CDP) may have limitations.