Telerik Test Studio - input text disappear immediately

320 Views Asked by At

In my test studio automation test case for a web page, I have a test step which is simply input some text into a text box. The problem is the text disappear right after inputting.

Same situation would occur when I use Selenium Webdriver in C#.

Have you ever met this before? Please give me some help.

2

There are 2 best solutions below

1
Akhil K On

In selenium use IJavaScriptExecutor class to set Text box value .If it doesn't work try clicking an element out of the text box after entering text box value.

0
ittv On

In Test Studio try focusing on the text box element (you can do that by clicking on the element) and use the following code for typing the text:

Manager.Desktop.KeyBoard.TypeText("your text here", 50);