Hi Sachin,
The
MsgBox function is not supported in script extensions. You can find more information in the
Writing Script Extensions - Specifics help topic.
BTW, I have noted that you give the same name to your script extension as a function within it. A usual approach is creating an extension with a general name like
MyLibrary and populating it with all methods you may need in your tests. In this case the
Process name for a method is not a good one as it does not describe what the method does. The better approach is to give meaningful names. For example:
<?xml version="1.0" encoding="UTF-8"?>
<ScriptExtensionGroup>
<Category Name="Runtime Objects">
<ScriptExtension Name="MyLibrary" Author="Sachin Jadhav" Version="1.0">
<Script Name="main.vbs">
<RuntimeObject Name="MyLibrary">
<Method Name="LaunchURL" Routine="LaunchURL_Function"></Method>
</RuntimeObject>
</Script>
<Description>
Provides a unified way of processing files in a folder.
</Description>
</ScriptExtension>
</Category>
</ScriptExtensionGroup>