Forum Discussion

rodrigotoffoli's avatar
rodrigotoffoli
New Contributor
9 years ago
Solved

Masked Textbox values are deleted when the test is running

Hi, i'm using TestComplete 11 on a Web Application.

First, i'm beginner in english language, so, sorry for my mistakes.

let's go.

In my application i'm setting date with a textbox (maskedtextbox), but when the TestComplete is running and i leave the field the values are deleted. can you help me with this problem ?

i would like to use data-driven to fill up.

thanks

6 Replies

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    Does your application need the cursor to move out of that date field to actually save the value?  You might need a tab or a similar action right after the date is entered.

    • rodrigotoffoli's avatar
      rodrigotoffoli
      New Contributor

      i'm using a data loop to fill up the text boxes, the data was loaded through an excel file.
      Only in this field (masked texbox) i'm inserting the data manually, i recorded the tab event when i leave the field, but it did not work field.

       

      Thanks

      • Marsha_R's avatar
        Marsha_R
        Champion Level 3

        Try a Focus or SetFocus on the date field right before the Tab.  This will make sure that the tab is actually moving out of that particular field after you enter the data manually.

         

        You should be able to enter the date from your Excel sheet or some other source.  Is there a special reason you are doing it manually?