Hello members of the forum. I had such a question about Selenium in python, I only recently started trying to work with it, so I don't know much yet and I haven't found the answer on other sites! How to work with a list of blocks in Selenium? For example, let's take a friends page on Facebook, where each friend is highlighted as a separate block with same class, so I want to work with each block separately, how to do this? So I made it selenium to find all elements with the same block class, that is, to work with each block separately (using "for") and what is next? How to take a photo or names specifically from one exact block? Of course, I can parse names, photos and something else separately from each other, but there is one problem, one of the blocks (friends) may have the university or mutual friends or none of these(empty), and if I will parse all separate, then the descriptions(university,mutual friends) will just stand up consistently as 1,2,3 ..., not including empty descriptions
If there are those who know, please help or share a link where I can read about it