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 |
What is dictionary object? what is the use of it? How you will display all the items in the dictionary object?
how to automate standalone infopath forms using QTP? (it is not a dotnet or a web form)
how to load all resource files(function libraries,object repositories etc) into tests without associating them?
How do you copy a value from a cell in an msexcel sheet saved on the desktop into QTP's datatable when the co-ordinates of cell are given?
what QTP Options do you know?
How to Test Dynamic links ?
Why do we use breakpoints in QTP?
What is the Diff between Image check-point and Bit map Check point?
Cn u please clarify my doubt Where are micTab and micReturn used.Thanx in Advance
How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?
what is the diff between Procedure and function
In qtp, how you can remove the spaces from string?