GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Testing Tools  >  QTP

 Print  |  
Question:  How to click on the link available in the web table , link is an item in web table and link is not static, i mean it can be any where, you can not guess?

here , there are two actions, one is to capture the newly added item and than clicking on it....




February 02, 2006 21:41:15 #2
 Vinothkumar Testing Expert  Member Since: February 2006    Total Comments: 11 

RE: How to click on the link available in the web tab...
 

You can use Method "ChildItemCount" in WebTable to return the number of objects of a specified type.

ex:

for loop <rows>

for loop<cols>

if Browser("ss").page("SSS").webtable("ssss").childitemcount(row,column,"Link") = 1 then

<code for clicking the link>

end if

next

next

     

 

Back To Question