AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Vb scripting for uft tutorial3/17/2024 ![]() ![]() When you record any webpage its objects will be automatically stored to object repository. Note: This is just sample script, This will not work if you just copy and paste it to QTP. SystemUtil.Run ““,””,””,””Browser(“Google”).Page(“Google”).WebEdit(“q”).Set “mba” Browser(“Google”).Page(“Google”).WebEdit(“q”).SubmitBrowser(“Google”).Page(“mba – Google Search”).SyncBrowser(“Google”).CloseĪbove sample script will open and type mba in search box and close it. Please Refer to know how to record above script : Getting started to QTP. Window(“Notepad”).Dialog(“Save As”).WinButton(“Save”).ClickĪbove sample script will open notepad type yes and save as named test at default location. Window(“Notepad”).Dialog(“Save As”).WinEdit(“File name:”).Set “test” Window(“Notepad”).WinEditor(“Edit”).Type micCtrlDwn + “s” + micCtrlUp Window(“Notepad”).WinEditor(“Edit”).Type “yes” I have listed here two QTP scripts examples specially for fresher, one is related to webpage and other is related to simple GUI (Graphical user interface). If you are advance users than just go through this blog you will get lots of advance QTP VB scripts examples which will be useful for your automation project. Hi friends, This post is useful for fresher who are looking for QTP scripts examples so that they can understand the qtp automation better. ![]()
0 Comments
Read More
Leave a Reply. |