Prepare for your Next Interview
This is a discussion on Image In WebTable within the QTP forums, part of the Software Testing category; Hi frndz I have a webpage. On which a WebTable is displayed dynamically. The WebTable have some columns. The last column contains 1 image which is a link. This link ...
|
|||
Hi frndzI have a webpage. On which a WebTable is displayed dynamically. The WebTable have some columns. The last column contains 1 image which is a link. This link is clicked depending upon the user's input data. Can anyone tell me how can I get image from webtable and after that click on the image. |
| The Following User Says Thank You to sanket172 For This Useful Post: | ||
| Sponsored Links |
|
|||
|
Re: Image In WebTable
I think this simple code should do the trick:
Browser("micClass:=Browser").Page("micClass:=Page").Image("file name:=Name_of_the_Image.Extension").Click I haven't tried this code as I don't have QTP on this machine, but I will and if I get to it before you do, I will correct it just in case its not working. |
|
|||
|
Re: Image In WebTable
Sanket, try this:
strImgVisible=Browser("micClass:=Browser").Page("micClass:=Page").Image("file name:=FileName.Extension").GetROProperty("visible") If strImgVisible=True Then Reporter.ReportEvent micPass, "Image Check", "Image Visible" Browser("micClass:=Browser").Page("micClass:=Page").Image("file name:=FileName.Extension").Highlight Browser("micClass:=Browser").Page("micClass:=Page").Image("file name:=FileName.Extension").Click Else Reporter.ReportEvent micFail, "Image Check", "Image not Visible" End If |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Webtable object identification on webpage | manabh | QTP | 9 | 4 Weeks Ago 07:28 AM |
| Image Comparer | JobHelper | Geeks Lounge | 0 | 10-11-2007 08:37 AM |
| image conversion tool | JobHelper | Geeks Lounge | 0 | 06-19-2007 09:10 AM |
| Image resize out of Proportion | gansmore | PHP | 0 | 04-12-2007 08:22 AM |
| How do one upload image? | jamesravid | Suggestions & Feedback | 11 | 12-11-2006 09:11 AM |