Question: I am automating whatsapp messages and would like to send them out through a tkinter window. In this tkinter window I have created a message box with the help of .label() and I am able to connect to whatsapp web through selenium. 

Currently, I am able to send out messages already, but without emojis. When I include emojis, I get this error "Chromedriver only supports characters in the BMP". How can I include emojis?

Answer: 
there was an open bug on chrome driver website, the bug as been fixed this month (14.11.21)

<https://bugs.chromium.org/p/chromedriver/issues/detail?id=2269>

this is the bug report.

**how to use new chrome driver:**

first go to:
<https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Win/942085/>

download the chrome driver from there.(the first mark as showen in image).

then you will need to install the new chrome v98 using the mini\_installer.exe

**(pay attantion its all expermintal)**,

without this you could not use the new driver due to version compitity.

next i needed to delete the current chrome version to make this work good.
[![enter image description here](https://i.stack.imgur.com/GmNty.png)](https://i.stack.imgur.com/GmNty.png)

your are all welcome to ask me question about it, i mange to make it work with the versions i add here on whatsapp using selenium chrome driver.

**EDIT:**
[![enter image description here](https://i.stack.imgur.com/fHZm8.png)](https://i.stack.imgur.com/fHZm8.png)
chrome versions 98 stable will come out in 30 days, so you could try to install the beta version and not the chromium version and see if it's working.

you don't have to delete the old chrome version, I know this thread is about python but in java (i guess python support it too) you could do this:

```
options.setBinary(System.getProperty("user.home") + "\\AppData\\Local\\Chromium\\Application\\chrome.exe");

```

and it will set the path to the chromium version.
You can use

```
js_code = """
  var elm = arguments[0], txt = arguments[1];
  elm.value += txt;
  elm.dispatchEvent(new Event('change'));
"""

your_text = 'this my text '
element = driver.find_element_by_xpath('//*[@data-testid="input"]')
driver.execute_script(js_code, element, your_text)

```