简体   繁体   English

C#Selenium使用SendKeys发送表情符号

[英]C# Selenium send an emoji using SendKeys

I am trying to sendkeys an emoji.我正在尝试向表情符号发送密钥。 I have tried to send it by copying the emoji 👍, but it raised this exception:我试图通过复制表情符号send发送它,但是它引发了此异常:

OpenQA.Selenium.WebDriverException: unknown error: ChromeDriver only supports characters in the BMP

I tried to send it as unicode but without any success.我试图以unicode的形式发送它,但没有成功。 It isn't the intended sign.这不是预期的标志。

input.SendKeys("/u1F44D")

What is the proper way to send an emoji?发送表情符号的正确方法是什么?

Searched and found this but it does not have an answer therefore I'm asking again.搜索并找到了这个,但是它没有答案,因此我再次询问。

I am trying to sendkeys an emoji.我正在尝试向表情符号发送密钥。 I have tried to send it by copying the emoji 👍, but it raised this exception:我试图通过复制表情符号send发送它,但是它引发了此异常:

OpenQA.Selenium.WebDriverException: unknown error: ChromeDriver only supports characters in the BMP

I tried to send it as unicode but without any success.我试图以unicode的形式发送它,但没有成功。 It isn't the intended sign.这不是预期的标志。

input.SendKeys("/u1F44D")

What is the proper way to send an emoji?发送表情符号的正确方法是什么?

Searched and found this but it does not have an answer therefore I'm asking again.搜索并找到了这个,但是它没有答案,因此我再次询问。

I am trying to sendkeys an emoji.我正在尝试向表情符号发送密钥。 I have tried to send it by copying the emoji 👍, but it raised this exception:我试图通过复制表情符号send发送它,但是它引发了此异常:

OpenQA.Selenium.WebDriverException: unknown error: ChromeDriver only supports characters in the BMP

I tried to send it as unicode but without any success.我试图以unicode的形式发送它,但没有成功。 It isn't the intended sign.这不是预期的标志。

input.SendKeys("/u1F44D")

What is the proper way to send an emoji?发送表情符号的正确方法是什么?

Searched and found this but it does not have an answer therefore I'm asking again.搜索并找到了这个,但是它没有答案,因此我再次询问。

I am trying to sendkeys an emoji.我正在尝试向表情符号发送密钥。 I have tried to send it by copying the emoji 👍, but it raised this exception:我试图通过复制表情符号send发送它,但是它引发了此异常:

OpenQA.Selenium.WebDriverException: unknown error: ChromeDriver only supports characters in the BMP

I tried to send it as unicode but without any success.我试图以unicode的形式发送它,但没有成功。 It isn't the intended sign.这不是预期的标志。

input.SendKeys("/u1F44D")

What is the proper way to send an emoji?发送表情符号的正确方法是什么?

Searched and found this but it does not have an answer therefore I'm asking again.搜索并找到了这个,但是它没有答案,因此我再次询问。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM