Collections:
Open and Close Internet Explorer
How to Open and Close Internet Explorer with UFT script?
✍: FYIcenter.com
One way to open and close Internet Explorer with UFT script is
to use the built-in class subroutine and method:
1. SystemUtil.Run cmd, options - A subroutine that runs a command or program like Internet Explorer. Note that subroutine arguments are specified without parentheses.
2. SystemUtil.CloseProcessByName(processName) - A method that terminates all instances of the given process name. Note that method arguments are specified with or without parentheses.
For example, the following test script will Start a new Internet Explorer window and display Google.com Website. Then it will close all Internet Explorer windows after a 2-second wait time.
SystemUtil.Run "iexplore.exe", "http://google.com" wait(2) SystemUtil.CloseProcessByName("iexplore.exe")
Â
2018-05-19, 8008👍, 0💬
Popular Posts:
Where to find tutorials on UFT (Unified Functional Testing) tool? I want to know how to use UFT. Her...
How to perform UUDecode (Unix-to-Unix Decode)? UUEncode is Unix-to-Unix encoding used on Unix system...
How to convert a date and time to a standard format? Date and time can be displayed in a number of s...
How to see my IP address Host Name? To help you to see your IP Address Host Name, FYIcenter.com has ...
How to valid UUID/GUID strings? In order to help your programming or testing tasks, FYIcenter.com ha...