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 test Web application using QTP software
four browser are open same application i want to enter 3browser how?
how to test one edit box using dotnet addin for Web Applications? write script?
Hi i have a webtable which is having 7 columns and 6 rows of data in that table of 4th and 5 th column each row is partiotioned into 3 sub rows i want to verify in each partitioned rows of corresponding row for ex values will be like this 0 / 1 ,26/28.if it is 0/1 i want to skip only if any num/num greater than 1 i want to click.
If an application name is changing frequently i.e while recording it has name “Window1” and then while running its “Windows2” in this case how does QTP handle?
What is Unicode Compatibility?
what does it mean when a check point is in red color? what do u do?
Problem with XML checkpoint in QTP ?
Hi. GetRoProperty and OUTPUT Value Both are same purpose or not? plz explain in deatil with example?
How do u fetch data from a database ?
what function you write to do database testing with the help of qtp?
How to creating an output value using quicktest professional (qtp)?