我正在推出一款使用“White framework”以半自动方式进行韩语到英语翻译的应用程序。然后通过使用 White 框架再次启动 UI 并创建文本框和组合框以向 C# 应用程序中的 UI 提供输入。
在使用这个时我遇到了以下问题。
我无法将韩语文本输入传递给 TestStack.White.UIItems.TextBox.Text
。当我尝试通过 C# 应用程序调用应用程序时。每个字符都被转换为 ?
。我可以知道可能是什么原因吗?如果你们中的任何人以类似的方式使用它,请告诉我或者你们中的任何人有任何可以帮助的建议,然后请告诉我。
最佳答案
改为使用 TestStack.White.UIItems.TextBox.BulkText
属性。
来自 TestStack.White(版本 0.13.3)文档:
BulkText: Sets the text in the textbox. The text would be cleared first. This is a better performing than the Text method. This doesn't raise all keyboard events. The string will be set exactly as it is in your code.
关于c# - 将 White.UIItems.TextBox.Text 设置为 unicode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30702960/