Answer the question
In order to leave comments, you need to log in
How not to lose part of the text when filling a field in selenium?
Good day.
There is a simple bot for sending emails to recipients.
At startup, I set the text, the subject of the message, sometimes attachments and the bot starts sending everything to the recipients.
But sometimes, if the text of the message is too large, some of the text is lost and only half or a couple of lines are inserted.
Has anyone experienced this and how was it treated?
According to the code, everything is extremely simple
, here is the line that sends data to the field
body_text = self.driver.find_element_by_xpath("//div[contains(@class,'htmlplaceholder')]")
body_text.send_keys(email_text)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question