@dmitry21 said in Why is it impossible to get an attribute of an element:
Thanks, but how to make the selector point to the code with the link?
Learn to write yourself. There's a lot of information online.

when i do a search on google.com, i want bot to log the number of top ads & bottom ads (eg 3 top ads, 2 bottom ads) as well as to be able to point & extract info from a particular ad (eg get title of number 2 top ad).
I could not find out the correct elements from inspection.
Plse help. thanks.