Nexial Automation

Test Automation Platform for everyone!

X

external » openFile(filePath)

Description

This command is used to open any type of file like pdf, excel, txt, image etc. This command will instruct the OS to open the file, if the specified file is not found, OS will show alert message.

Parameters

  • filePath - this parameter is the path along with the name of the file to be open

Example 1

Script:
script

If the file does not exist at the specified path the OS may show alert message like
script

See Also

external » runProgram(programPathAndParams)