How to write script to display a message box having
the "Date" value of the fourth mail(yahoo account).
I've tried it with the web table concept but the content
doesn't get displayed?
Please help me out to resolve this :-)
Answers were Sorted based on User's Feedback
Answer / venkatesh kodagi
Set oPageObject = Browser("browsername").Page
("pagename").Object
Set oTableObject = oPageObject.getElementsByTagName("table")
sActualText = oTableObject
(inxexoftable).rows(3).cells(columnnumberofdate).innerText
inxexoftable = if page have multiple tables then the index
should be the inbox table.
hope this will helps u.
| Is This Answer Correct ? | 2 Yes | 0 No |
In Yahoo mail, if you want to fetch the Date of the four row
(mail), use the following code
E.g: Using record and playback
msgbox Browser("Yahoo! Mail - amar_kothuru@yah").Page
("Yahoo! Mail - amar_kothuru@yah").WebTable
("Sender").GetCellData(4,9)
E.g.:Using Descriptive Programming
msgbox Browser("name:=Yahoo! Mail -
amar_kothuru@yahoo.co.in").Page("title:=Yahoo! Mail -
amar_kothuru@yahoo.co.in").WebTable
("name:=toggleAll").GetCellData(4,9)
Why you are not able to fetch the date value is
Sometimes QTP gives invalid column count of the webtable
and if you follow the same, you can't able to fetch all
column values.. So try different combinations of column
numbers(more than actual columnCount) and get the results.
When you add Webtable object to object repository and it
shows the column count as 7. I think, you tried upto the
column number 7. But if you pass the column number as 9,
you could get the date value. if pass column number as 10,
you would get Size value.
| Is This Answer Correct ? | 1 Yes | 1 No |
How to do excception handling ( error handling ) in QTP
6 Answers Institute for Medical Education,
In Manual testing , can u prpare bug report in TD?
what is the main process in QTP?
How to capture data from images in QTP and produce them in Excel sheet ? please ans...
what is the extension for QTP files?
16 Answers American Solutions,
one screen page,that contains file , browse , update and cancel buttons.when we browse a file it should get update otherwise it should go to previous page.write negative test case for that.
What are the types of environment variables in qtp?
What will be the output of the statements below? On error Resume Next Sum 100/0 if Sum= 0 Then msgbox "Pass" else msgbox "Fail" End If
how will u choose a tool for test automation ?
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
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?
How u prepare Test result summary in QTp?