Page 1 of 1

Search for elements on a page by IDs/Tags/Classnames

Posted: Fri Aug 06, 2021 1:21 pm
by Vlad__1
Hello
I need to search for elements on a page by IDs/Tags/Classnames, parse their HTML/values and other properties, and change them as needed.
Is it possible to implement this using CEF4Delphi with reasonable effort (I took a short look at DOMVisitor, didn't examine it, but if this 1000 lines is just a replacement for GetElementByID, then it is useless)?

Re: Search for elements on a page by IDs/Tags/Classnames

Posted: Sat Aug 07, 2021 9:35 am
by salvadordf
Hi,

DOMVisitor has code examples to do that and several other things. Chromium's use of multiple processes adds a some extra steps but everything is explained in the code comments.