How get diffrent text from the same object?

I can get all this text when I use getText for general div. But later I would like to compare Strings and all text at once will never be equal :frowning: