Clément 148 Posted March 15, 2023 Hi, Is it possible to scan the content, downloaded using Edge Browse, for a specific text? I don't want to inject or alter anything. Just scan the page for a specific text. Can this be done with edgeBrowser? Is there a sample? TIA, Clément Share this post Link to post
David Schwartz 426 Posted March 15, 2023 (edited) This could be as simple as doing a basic HTTP GET request for the html page. But if there's any javascript in it that generates content, then you need to have it loaded into the browser's DOM and search that, which can be quite a PITA. Similar effort in whatever browser you're using. If you want an example of how convoluted it can be, issue a simple query to Google and see what you get back. You'll see very little HTML code that's visible in the browser, and the stuff in the browser is generated in a variety of different ways, making it really hard to reconstruct what actually appears on the browser's screen. Google has raised the art of obfuscation to another level! Edited March 15, 2023 by David Schwartz 1 Share this post Link to post
FPiette 383 Posted March 15, 2023 8 hours ago, Clément said: Is it possible to scan the content, downloaded using Edge Browse, for a specific text? I don't want to inject or alter anything. Just scan the page for a specific text. Can this be done with edgeBrowser? Is there a sample? Yes, there is: https://blogs.embarcadero.com/execute-scripts-and-view-source-with-tedgebrowser/ Look at subtitle "View The Source". Share this post Link to post
Clément 148 Posted March 15, 2023 10 hours ago, FPiette said: Yes, there is: https://blogs.embarcadero.com/execute-scripts-and-view-source-with-tedgebrowser/ Look at subtitle "View The Source". Yeap! That did the trick. Thank you Share this post Link to post