Forum Discussion

tmahender12's avatar
tmahender12
Frequent Contributor
9 years ago

Verifying a text in a Grid

hi,

I have grid in my application, iam not able to identify a text inside it through Object spy, i need to verify the text present under memo(attached screenshot)

 

any idea how to retrieve the text from attached grid?

21 Replies

  • tmahender12's avatar
    tmahender12
    Frequent Contributor

    the object spy is giving below path

     

    Sys.Process("Myob").Form("AccountRight Plus").Panel("Workspace").MDIWindow("Find Transactions").Client("Find Transactions")

    • shankar_r's avatar
      shankar_r
      Community Hero

      Okay, you can't identify the each cells in few type of Application's Gird.

       

      In order to verify the values in the Grid, you can loop thru rows and columns something like below.

       

      for(var i = 0; i < ObjGrid.wRowCount;i++)
      {
            for(var j = 0; j < ObjGrid.wColumnCount;j++)
            {
                    if(ObjGrid.wValue(i,j) == "<expected value>")
      {
      Log.Message("Blahh blahh")
      } } }