I have one bitmap image in my webpage. The bit map image is
moving like 1 place to 2nd place and 2nd place to 3rd place
Etc… in my webpage.
I wanted to write script for dynamical objects like above
example.
Could you please send me the answer for above query.
Answers were Sorted based on User's Feedback
Answer / raj kumar
This is the correct answar
Var= Browser("Automation Testing Interview").Page("Automation
Testing Interview").Image(html tag:=IMG", file
nmae:=KalAajKal.com").Exit
If Var= True then
Browser("Automation Testing Interview").Page("Automation
Testing Interview").Image(html tag:=IMG", file
nmae:=KalAajKal.com").Click
Else
Msgbox " No image on page"
endif
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / naren
V can identify the image using below DP irrespective of its
position.
Browser("xx").page("xx").image("file name:=xx.gif").click
Since the image file name will be unique
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / kumar
regular expression can be used when the image name
consider as pic1 , changed to pic2 or pic3.
but in this secnario , position of the image is changing.
so need to identify the object dynamically.
answer 1: can resolve this issue......
Is This Answer Correct ? | 1 Yes | 2 No |
Answer / kumar
hi vineela
using the Analog Recording mode we have to record each
and every possible position of the Image in the page.
In this secnario the image position is not fixed in the
page,so it will be in position 1 or 2 or 3 or 4 or 5or 6 or
7 or 8 ................
so we can't handle this using recoridng mode options.
Go for Descriptive programming(Answer1), irrespective of
the position it will identify the image in the PAGE.
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / neeraj kumar
Hi! Mvkumar123
To resolve this issue we will use regular expression. QTP
provides regular expression to identify an objects,having
changing values....
Regards
Neeraj Kumar
Is This Answer Correct ? | 2 Yes | 4 No |
Answer / kumar
Browser("Automation Testing Interview").Page("Automation
Testing Interview").Image(html tag:=IMG", file
nmae:=KalAajKal.com").Click
here in image(). give the unique properties of that image.
Is This Answer Correct ? | 2 Yes | 5 No |
Answer / vineela
Hi Kumar,
In Analog Recording mode we can identify the objects with
window coordinates. It doesn't matter where the picture is
on desktop, but by default is Context Sensitive mode so we
need to change to Analog recording mode for that particular
step.
Is This Answer Correct ? | 1 Yes | 5 No |
Answer / alok
Hi,
Your's problem will be solveed by using virtual object
concept.
Is This Answer Correct ? | 0 Yes | 9 No |
What is RTM (require ment tracebulity marix) fromate?
in a web table , i want you to click a particular object inside cell
A web page has two butons with same properties and rotating in clockwise direction. how to click on any of the button?
In key word driven framework,we will rename the logical names of objects,why?
How to take screen shot of desktop by using vb script code or is there any method?
What is expert view in qtp?
what kind of erros can be handled with the using QTP?
Hi, I have 2 dropdown listboxes called region and city/area. It needs to select one region(Santa Clara) and one city/Area (Sunnyvale).So I put this in the for loop and I am storing the Items in the variable called itemname. The regions value will get changed,so I used reg expression for this regions. This is my code Browser("MLSListings.com").Page("MLSListings.com").Link("» County/Area").Click Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Check CheckPoint("regions") ListSize=Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetTOProperty("items count") For i = 1 To ListSize-1 Itemname =Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetItem(i+1) Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Select Itemname ................. If I run the script,I am getting the following error, Cannot identify the specified item of the regions object. Confirm that the specified item is included in the object's item collection. Any Help? Thank you, Uma
how to upload an excel sheet to quality center?
VB scrip has a special command named LBound, which returns the starting index of an arry. What are the possible indexes an array can start with? options are given below. and one only the correct answer. pl select it 1. any index 2. only even non-negative 3. only 0 4. any non-negative integer
There is an built in window application in qtp9.1,i.e.Flight4.0.i want to implement the recovery maneger on it.How can i do this?
Explain the concept of object repository & how QTP recognises objects?