locked
code to click on dynamic hyperlink RRS feed

  • Question

  • I have a page contains vary number of rows and 10 columns. there are three columns, each of them, contains hyperlink.

    I was able to create methods to obtain data in other 7 columns at any row.  But I am stuck with clicking on a hyperlink on a prefer row.

    please give me ideas/code to do it. 

    I thought it should be close to method to obtain data from the cell but  Hmmm..... 

    below is how I get to my prefer row or obtain data from a column/row:

    htmlcell theTable = new htmlcell(table);

    theTable.FilterProperties[htmlCell.propertyNames.columnIndex] = "4"; // set to column 4

    UiTestControllColletion theCollection = theTable.findMatchingControlls();

    hrmtlCell myData = (htmlCell)theCollection[29];  // Set to row 29

    Message.Show(myData.innertext);

     

    Wednesday, November 3, 2010 3:03 PM

Answers