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

Post Reply
Vlad__1
Posts: 0
Joined: Fri Aug 06, 2021 1:10 pm

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

Post 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)?
User avatar
salvadordf
Posts: 3067
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

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

Post 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.
Post Reply