Automatisera form (python 2.7.9, webbrowser, Chrome). On the website encoding is cp1251.
The task is to gain the Cyrillic text in the input.
Problem - text disappears and the letters, o, p, R, s, t, u, f, Kh, TS, CH, sh u, b, s.
text = "Text in field"
obj_name_ru = browser.find_element_by_id("obj_name_ru")
obj_name_ru.send_keys(text)
Changed the encoding in the header of the file (tried utf8 and cp1251) tried initially to set the text in Unicode
u"Text in the field", I tried before sending the text to use the
text = unicode(text, "cp1251"). All this has not helped to solve the problem.
In what direction to look, where to dig to find a solution? Someone faced with such, how could be solved?