Category: Samples

Mouse Clicks & Key Press Using Testmate

Testmate allows you to simulate keystrokes and mouse clicks as below: Mouse Click 1 2 'Perform mouse click on the entered x and y co ordinates Call native.MouseClick(5,5)'Perform mouse click on the entered x and y co ordinates Call native.MouseClick(5,5) Mouse Right Click 1 2 'Perform right mouse click on the entered x and y

How To Invoke External DLL’s | VBScript

Testmate provides the capability to invoke procedures in external DLL’s. The below code demonstrates the usage of  LoadAndRun method to invoke SetForegroundWindow method from user32.dl: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 'Declare The DLL to be used sDLL = "user32.dll"   'Declare the

Webdriver | Internet Explorer | Set Proxy Using Testmate

To launch Internet Explorer with a proxy, use the following code in Testmate: VBScript 1 2 3 4 5 6 7 8 9 10 11 12 13 14 'Initialize the options (Optional but recommended) Call wd.InitializeInternetExplorerOptions()   'Set HTTP Proxy value in the proxy object Call wd.SetHTTP_Proxy("localhost:8888")   'Set Proxy for IE Call wd.SetProxy_InternetExplorerOptions()  

Webdriver | Launch Firefox Browser Using Testmate | Proxy

The below code launch the Firefox browser using Testmate navigates the URL and performs some search operations. Webdriver needs a gecko driver to launch firefox. Setup: Make sure Geckodriver.exe file path is present in the Path system variable. Firefox Default InitializeFireFoxDriver method takes the path of gecko driver as a parameter 1 2 3 4 5

UI Automation | Advance Script With OR

The below piece of code demonstrates the usage of advance methods for UI Automation. It invokes the sample application which is provided with the tool.  This code also uses object repository which is attached in the post. Setup: Copy the below VBScript code in a text file with extension .jts In the same folder as

UI Automation | Basic Script | Calculator

Below is the sample script for automating the calculator application on Windows 10. The script launches the calculator and clicks on 2, 3 and 4 number buttons. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 'Describe the object properties oWindow = "Window,Name::Calculator" oTwo = "Window,Name::Calculator>==>Button,Name::Two"