'Links opened in new tab/POPUP
Set myPage=Browser("creationtime:=0").Page("title:=.*")
myPage.WebElement("title:=Support the jQuery Foundation","index:=1").Click
'New Tab
Set myPage2=Browser("creationtime:=1").Page("title:=.*")
myPage2.WebElement("name:=Blog","index:=0").Click
myPage2.CaptureBitmap "E:\QTP\TABS.png",True
'Browser("Donate – JS Foundation").Page("Donate – JS Foundation").Link("Home").Click
'----------------*****************--------------------
myPage2.WebEdit("name:=user[name]"). set "sud3eer"
'this will not accept by qtp so user\[name\]
No comments:
Post a Comment