[英]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.