In a yahoo web Application there are 65 links.one day it
will opens 50 links and another day it will open 55
links.In this scenerio write Descriptive programing for
Automation?....Pls write the code for this scenerio.
Answer / gaurav anand
for that page, use description.create() to get an object and then use that object to assign a "micclass" value i.e. in this case is links. then, count the no of links using count(). then store this in a variable and use a for loop to work on these links.
set a = description.create()
a.("micclass").value=links
for(i=0;i<a.count,i++)
set b= browser("").page("").childobjects(a)
-----use b as an object to do whatever you want to do on a link-----
next
Is This Answer Correct ? | 0 Yes | 0 No |
1. how can you handle exceptions without using recovery scenario?
What are the trigger events in qtp?
how to test a java project throughqtp?while testing a vb project we generally do vb scripting. but while testing java project do we use java script .plz some one can send me the manual for it my email roy_samata@yahoo.com thanks in advance
WHAT IS THE FRAMEWORK & ARCHITECTURE OF YOUR PROJECT
I used Child objects to get the count of the no of weblist present in the page.now i need to select the item in the weblist..Please send me full code
How can you handle exceptions in qtp?
How to "Turn Off" QTP results after running a Script?
What does ".mst" stands for? (abc.mst)
How can we write script for a .net application in QTP? Can we use VB Script for .net application.
Can we directly automate testscripts accrdoing to requirements
2 Answers CitiGroup, Novartis,
What is keyword view in qtp?
What is action required by QTP if a popup message is coming in exsisting script and now it is not coming. The script is having code to deal with popup message now when we run the script now the popup i snot coming according to new build, instead of changing the code what we can do?