How to capture the Image width and height using QTP script ?

Kindly answer plz....
Thanx in adavance...



How to capture the Image width and height using QTP script ? Kindly answer plz.... Thanx in adav..

Answer / Yogendra Pal Singh

In QTP (QuickTest Professional), you can use the following methods to get the image width and height:
1. To get the width of an image, use the 'Width' property of the Image object.n```javascriptnimgObj = ImageSpyObject("path_to_your_image")nwidth = imgObj.Widthn```
2. To get the height of an image, use the 'Height' property of the Image object.n```javascriptnheight = imgObj.Heightn```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

How to trigger a postback on an updatepanel from javascript?

1 Answers  


What are the ways of making comments in javascript?

1 Answers  


How to setting a cookie with the contents of a textbox?

0 Answers  


What is are the types of the pop up box es available in javascript?

1 Answers  


How do I add a javascript event handler to an html page element?

1 Answers  


Is it safe to use javascript?

1 Answers  


What is the difference between textContent and innerText?

1 Answers  


Name the two functions that are used to create an HTML element dynamically?

1 Answers  


What is arguments object in JavaScript?

1 Answers  


What does dynamic component in javascript contain?

1 Answers  


Does javascript support automatic type conversion, if yes give example.

1 Answers  


How do I run code in browser console?

1 Answers  


Categories