Python selenium send_keys emoji support
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to use selenium's send_keys to send emoji characters to a text box with the following python code. browser = webdriver.Chrome(chrome_options=options) browser.get("https://www.google.co.in") time.sleep(5) working = browser.find_element_by_id('lst-ib') text = u'Python is ?' working.send_keys(text) I am getting the following error. Traceback (most recent call last): File "smiley.py", line 30, in <module> working.send_keys(text) File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webelement.py", line 347, in send_keys self.