I noticed that when i retrieve texts from all html div tags in a loop fashion, the retrieved text is not always identical with the the original. What i mean is that if my text has multiple spaces (tab), they are trimmed.
For example consider that i have the following text: 'Hello_____World', how can i retrieve this instead of 'Hello_World'?
The code approach:
for flower in flowers:
print(flower.text)
Generally, it is good to retrieve text without redundant spaces, but it is difficult to query the database with slightly different text and i think that it isn't desirable to query the database with part of text.
To conclude, is there any way to retrieve the text as it is, without trimmed spaces in selenium through python?