Python 2.7.9, webbrowser: missing part of Cyrillic letters in input. What could be the problem?

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?
July 9th 19 at 10:58
1 answer
July 9th 19 at 11:00
He did not stalkivalsa, but googling for fun. It seems that a problem in selenium:
I did some testing and problem is in NativeKeyboard.
Webdriver_enable_native_events Setting to false fixed my problem.

-- https://github.com/seleniumhq/selenium-google-code...

Find more questions by tags AutomationCharacter encodingPython