How to assign the values to the textbox presented in the gridview for a row

Locked How to assign the values to the textbox presented in the gridview for a row

  • Friday, May 13, 2011 10:11 AM
     
     


    I am doing visual studio 2010 coded UI automation testing for my application.

    Scenario:

    During recording the grid is containing 3 rows.Now ,I entered the data in a textbox present in the gridview of the 3rd row and saved.Mean while some one deleted 2 rows.Now only one row is existing in the gridview.

    Issue:When i am trying to playback  the scenario fails because it is unable to find  the 3rd row (Doesnt exists).

    Let me know if there is any solution for this:

    uICtl00ContentPlaceHolEdit1.Text = CurrentMonthValue;

    Here uICtl00ContentPlaceHolEdit1 is  the property recorded for 3rd row.

    Question: Any way to assign 3rd row value to 1st row.Any alternatives.

     


    Sravani