01-13-2008, 05:39 AM
Hi I'm recording & running on yahoo site mail inbox.Code is below
The question is when i signed in, my inbox had 4 mail.I checked and composed mail and logged out.Now again i runned my application but this time number of mails in Inbox has changed because of that my test failed.What should i do.
Thanks in Advance,
Code:
SystemUtil.Run "C:\Program Files\Internet Explorer\IEXPLORE.EXE","","C:\Documents and Settings","open"
Browser("Browser").Page("Page").Sync
Browser("Browser").Navigate "http://www.yahoomail.com/"
Browser("Browser").Page("Yahoo! Mail: The best").WebEdit("login").Set "user"
Browser("Browser").Page("Yahoo! Mail: The best").WebEdit("passwd").Set "Mercury"
Browser("Browser").Page("Yahoo! Mail: The best").WebButton("Sign In").Click
[b][color=#FF0000]Browser("Browser").Page("Yahoo! Mail - user@yahoo").Link("Inbox(4)").Click[/color][/b]
Browser("Browser").Page("Yahoo! Mail - user@yahoo_2").Link("tutorials site").Click
Browser("Browser").Page("Yahoo! Mail - user@yahoo_3").WebButton("Compose").Click
The question is when i signed in, my inbox had 4 mail.I checked and composed mail and logged out.Now again i runned my application but this time number of mails in Inbox has changed because of that my test failed.What should i do.
Thanks in Advance,