May-21-2018, 07:59 AM
Hello, so if I understand your problem correctly, you want to keep the text in the textarea but enter some string at the beginning:
data_reference = driver.find_element_by_xpath('//*[@id="editdetails_frm"]/table/tbody/tr[24]/td[3]/textarea'+"\n") text_in_textarea = data_reference.text data_reference.clear() data_reference.send_keys(str(ele[1]) + text_in_textarea) data_reference1 = driver.find_element_by_xpath('//*[@id="edit_detail[22]"]') data_reference1.click()I think you just need to save the text that's already in, clear the textarea and enter your string together with the text that was there before.