Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
04-25-2011, 06:22 PM
use webtable methods instead accessing webelements directly.
try below steps to achive this -
1. get the row where your required text is there in the table using GetRowWithCellText
nRow =B().P().F().WebTable().GetRowWithCellText("AR1100000113")
2. set an object to the webelement of the row and required column
Set oElem = B().P().F().WebTable().childitem(nRow,4,"WebElement",0)
3. Click on webelement
oElem.Click
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
04-26-2011, 10:03 AM
'4' in childitem statement is the column number where you wbelement is in the row.
you have used it as 'c' later, but it will contain the number of columns in the specified row by using your statement as 'WebTable("Requested Admission Date").ColumnCount(nrow)' use the column number where webelement is present there.
Posts: 17
Threads: 4
Joined: Apr 2011
Reputation:
0
04-27-2011, 10:09 AM
(This post was last modified: 04-27-2011, 10:10 AM by satishkumarm.)
Guyz,
Please help me ASAP which is highly appreciated..waiting for ur reply
Thanks,
Satish
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
04-27-2011, 10:32 AM
what do you mean by "not equally distributed", are you able to get the column number for Requisition Number?
there could be one more way - you just need to select the required row and proceed, right? see if this can be done by clicking the webelement at first column. if so dont bother to retrive the column number just try with 1.
let me know if that works.