![](/img/trans.png)
[英]SendKeys is injecting the text to the input field only for a few seconds and immediately after that the text vanishes from the input field
[英]Telerik Test Studio - input text disappear immediately
在我的网页测试工作室自动化测试用例中,我有一个测试步骤,它只是将一些文本输入到文本框中。 问题是输入后文本立即消失。
当我在 C# 中使用 Selenium Webdriver 时会发生同样的情况。
你以前遇到过这种情况吗? 请给我一些帮助。
在 selenium 中使用 IJavaScriptExecutor 类设置文本框值。如果它不起作用,请在输入文本框值后尝试单击文本框外的元素。
在 Test Studio 中尝试关注文本框元素(您可以通过单击元素来实现)并使用以下代码输入文本:
Manager.Desktop.KeyBoard.TypeText("your text here", 50);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.