Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Workaround for emoji problem #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

derGrosseWirsing
Copy link

Workaround for emoji problem Chrome

Comment on lines +95 to +101

# Mod: Workaround for emoji problem
script="var elm = arguments[0],txt=arguments[1];elm.value += txt;"
browser.execute_script(script, text_box, response)

# Mod: neccessary else send_keys throws an error
text_box.send_keys(" ")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sending the response to the textarea via javascript. The empy space in line 101 is needed to dispatch the native events so that the send works. Simpler this way than to dispatch the events in javascript.

@derGrosseWirsing derGrosseWirsing changed the title Develop Workaround for emoji problem Apr 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant