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

If an application name is changes frequently i.e while recording it has name "Window1" and then while running its "Windows2" in this case how does QTP handles?

1 Answers   Crea,


Hi, is it possible for recording shortcut key during record session? The application on which I am working is web based application. This application has several shortcut key associated with menu option. I have succesfully recorded all menu option but unable to record shortcut key.

1 Answers  


Hi Sudhananda, plz send me the QTP framework with any diagram and PPTS . I want to switch to automatio, I done QTP from professional person, but he does not give me his knowledge properly. so pls help me Thaks send me on following address mirajkar.akash@gmail.com

0 Answers   TechSoft,


What is test harness?

2 Answers  


QTP 9.2, Issue: Creating Shared Object repository. I recorded 2 scripts. I exported the Object Repository to a shared location for the first script. Associated the exported repository to the first script and deleted the Local Repository for the First Script. Now Opened the Second script and try to Add the Local Object Repository of 2nd Script to Exported Object Repository. But I fail. Can anyone please help in providing steps that need to be followed in creating a shared object repository? Thanks in Advance.

3 Answers   Google, UHG,






what is the difference between link and hyper link?

1 Answers   Ordain Solutions,


I'm facing this problem while automating my application..its a web based apps.. In my application there are few webtables are displaying in the page.In the different cells there are links and action buttons.Problem is there is link in different web tables corresponding to one name.Hence the properties of the objects(say a link) are same except the x,y co ordinate of the object.So my script is not able to distinguish between the two links present in different cells of web tables with same name.Kindly help on this..

3 Answers  


How to Import data from a ".xls" file to Data table during Runtime.

1 Answers  


how to retrieve the column headers in database using vbscript statement in QTP

1 Answers  


In automation testing Can we retest virtual object in the application after getting new version from the developers, is there any property will change for that object or it won't.?

1 Answers   Siemens,


how many maximum number of virtual users we can create?

0 Answers  


How many types of parameters are available in quicktest professional (qtp)?

0 Answers  


Categories