Using emojis with driver.type #2814
-
Hi, I'm encountering an issue when using driver.type() with text containing emojis. The error message I receive is: "ChromeDriver only supports characters in the BMP," which I believe is due to the presence of emojis in the text. Here's a snippet of the code that's causing the issue: generated_reply = "Hello! 😊 How can I assist you today?" Is there a way to handle emojis and other non-BMP characters with driver.type() or any workaround you would recommend to avoid triggering detection while entering text in a textarea? Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Convert to unicode first. There's more info on Stack Overflow: https://stackoverflow.com/a/61043442/7058266 |
Beta Was this translation helpful? Give feedback.
Convert to unicode first. There's more info on Stack Overflow: https://stackoverflow.com/a/61043442/7058266