Write code for ,We have a web table with rows and columns like
EmpID EName Action
1 ABC Edit Delete
2 XYZ Edit Delete
3 PQR Edit Delete
In the above Table the last column has two links we have to click first link based up on EmpID =2
Answer Posted / mogal
RC = Browser("Browser name").Page("Pagename").webTable("TableName").RowCount
CC = Browser("Browser name").Page("Pagename").webTable("TableName").ColumnCount(1)
Rnum = Browser("Browser name").Page("Pagename").webTable("TableName").GetRowWithCellText(2)
for jLoop = 1 to CC
If Browser("Browser name").Page("Pagename").webTable("TableName").GetCellData(1,jLoop) = "Action" Then
Cnum = jLoop
Exit for
End if
Next
Set ReqLink =Browser("Browser name").Page("Pagename").webTable("TableName").childItem(Rnum,Cnum,"Link",0)
ReqLink.Click
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Where we can use the analog mode and where we can use the low – level mode?
Brief the process of testing with UFT?
Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?
How to record application running on the Virtual machine?
what could go wrong with test automation?
Write a script to customize the test results in PDF and HTML format.
How to use transactions in qtp?
when will you do debug your script? and explain that process?
Explain more about the Test Fusion Report of QTP?
What are the 3 main stages involved in testing with qtp?
wht is Manual Testing Frame work. Pls anybody can give appropriate answers
Hi, I am supposed to automate mainframe application through qtp. I do not know how to start abt it. Can you plz help me in first initializing the process or do you anybody have a guide book or a link which guides me through the process of automating the mainframe applications and things involved in it.
your coming from electrical backgroung..but y ur coming to software side?
Write a script to verify font style and color of a windows object using descriptive programming
What are private functions in QTP? How they can be called from the function library?