InterviewSolution
Saved Bookmarks
| 1. |
What are the various methods for launching an application in UFT? |
|
Answer» Following are the different methods of launching an application:
Following is the SYNTAX for USING SystemUtil.Run SystemUtil.Run ( FileName, Parameters, Path, Operation )Example: SystemUtil.Run("chrome.exe",http://www.google.com)SystemUtil.Run("test.txt", "","C:\","1")
We can also use the InvokeApplication COMMAND for launching an application. InvokeApplication "C:\Program Files\Google Chrome\CHROME.EXE http://www.google.com"
Example: We create a “WScript.shell” object. Dim testshellSet testshell= CreateObject ("Wscript.shell")testshell.run "%windir%\paint" |
|