How to capture the Image width and height using QTP script ?
Kindly answer plz....
Thanx in adavance...
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 |
How to trigger a postback on an updatepanel from javascript?
What are the ways of making comments in javascript?
How to setting a cookie with the contents of a textbox?
What is are the types of the pop up box es available in javascript?
How do I add a javascript event handler to an html page element?
Is it safe to use javascript?
What is the difference between textContent and innerText?
Name the two functions that are used to create an HTML element dynamically?
What is arguments object in JavaScript?
What does dynamic component in javascript contain?
Does javascript support automatic type conversion, if yes give example.
How do I run code in browser console?