02-21-2012, 09:35 PM
(This post was last modified: 02-21-2012, 09:36 PM by jinnah1978.)
I am trying to write a note and save it in "yahoo note pad"
I logged in using my credentials. When click on Notepad. it opens another tab (notepad). I want to close thew previous tab. Tried several ways. Please help me with your invaluable suggestion
Two tabs in this stage.I want to close 1st one and work on current one(Notepad)
I logged in using my credentials. When click on Notepad. it opens another tab (notepad). I want to close thew previous tab. Tried several ways. Please help me with your invaluable suggestion
Code:
SystemUtil.Run("iexplore.exe"),"www.yahoo.com"
wait(3)
Browser("Micclass:=Browser").Page("Micclass:=page").WebElement("innertext:=Mail" , "html tag:=EM").Click
Browser("Micclass:=Browser").Page("Micclass:=page").WebEdit("html id:=username").Set "................@yahoo.com"
Browser("Micclass:=Browser").Page("Micclass:=page").WebEdit("html id:=passwd").SetSecure"..................."
Browser("Micclass:=Browser").Page("Micclass:=page").WebButton("html id:=.save").Click
Browser("Micclass:=Browser").Page("Micclass:=page").WebElement("innerhtml:=Notepad").Click
Two tabs in this stage.I want to close 1st one and work on current one(Notepad)