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



I have one bitmap image in my webpage. The bit map image is moving like 1 place to 2nd place and 2n..

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

I have one bitmap image in my webpage. The bit map image is moving like 1 place to 2nd place and 2n..

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

I have one bitmap image in my webpage. The bit map image is moving like 1 place to 2nd place and 2n..

Answer / neeraj

is it correct answer

Is This Answer Correct ?    0 Yes 0 No

I have one bitmap image in my webpage. The bit map image is moving like 1 place to 2nd place and 2n..

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

I have one bitmap image in my webpage. The bit map image is moving like 1 place to 2nd place and 2n..

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

I have one bitmap image in my webpage. The bit map image is moving like 1 place to 2nd place and 2n..

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

I have one bitmap image in my webpage. The bit map image is moving like 1 place to 2nd place and 2n..

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

I have one bitmap image in my webpage. The bit map image is moving like 1 place to 2nd place and 2n..

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

I have one bitmap image in my webpage. The bit map image is moving like 1 place to 2nd place and 2n..

Answer / alok

Hi,
Your's problem will be solveed by using virtual object
concept.

Is This Answer Correct ?    0 Yes 9 No

Post New Answer

More QTP Interview Questions

how do close the task manager through QTP?

2 Answers  


Diff b/n image n bitmap checkpoints?

2 Answers   iGate,


iam working in QTP for 2+ of exp if i attend the interview what r questions asked in perfomence testing{loadrunner} ? pls any one can say answer to this question?

0 Answers   Infosys,


What is Reusable component is QTP...Anybody can answer it..Thanks in advance...

8 Answers   Siemens,


what is life cycle of automation testing ?

7 Answers   HealthAsyst,


I'm having a problem to get the status(pass or fail) during runtime for every iteration ran, and must get the results stored to an excel sheet if possible.

1 Answers   FAI,


Is it possible to run QTP scripts created in IE 6.0 in IE 7.0?

4 Answers   TCS,


what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?

0 Answers  


How can we make a shared object repository in QTP 9?

3 Answers   Kanbay, Ordain Solutions,


How can i initiate the objects to find uniquely in OR

0 Answers   IBM, Livetek,


Can anybody post some real time scenario in qtp? please its very urgent.

0 Answers   Kanbay,


Can you write a script for to insert array elements in an excel A to Z columns only. if the number oe elements in the array is greater than the number of columns (A to Z), come to next row and proceed furthur. eah cell should contain only one array value.

1 Answers  


Categories