c# - 将 White.UIItems.TextBox.Text 设置为 unicode

标签 c# unicode white-framework

我正在推出一款使用“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/

相关文章:

如果属性具有 null 值,尽管 JsonIgnoreCondition.WhenWritingNull,C# JsonSerializer.Deserialize 也会失败

iphone - 如何使用 HTTP POST 通过 NSMutableURLRequest 将要点 (•) 发送到我的 PHP 页面?

c# - 当前上下文中不存在名称 'AutomationId'

C# TestStack.White - 无法精确定位到我想要的按钮

c# - 构建一个 C# 应用程序,使其根据运行的云使用 s3 或 blob

c# - ASP.NET Identity 2.0 检查当前用户是否在角色 IsInRole

c# - 如何将原始数据显示为图像 (Visual Studio c#)

c# - 当使用的字体不支持这种语言时,Label 控件如何正确显示日语字符?

android - 防止字符被绘制为表情符号

c# - 使用 Visual Studio Team Services 进行自动化用户界面测试