Month: March 2018

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

Appium | Automate Android Application Using Testmate

Appium is an open source test automation framework for automating native, hybrid and mobile web applications. Testmate allows you to program Appium using VBScript. Setup Turn on AVD using emulator or connect a real android device Turn on the Appium Server Run the below code with correct device name and other capabilities The below code invokes the default calculator

Webdriver | Launch Edge Browser Using Testmate | VBScript

Webdriver needs MicrosoftWebDriver.exe file to launch a chrome browser. Download the latest version here. The below code launch the Edge browser using Testmate. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 'Intialize edge Options wd.InitializeEdgeOptions()   'Initialize edge Driver wd.InitializeEdgeDriver("C:\Users\...\EdgeDriverPath")   'Navigate the URL wd.NavigateToUrl("https://www.facebook.com/")   'Highlight

Webdriver | Execute JavaScript Using Testmate

JavaScript is one of the most preferred language used in web browsers. A browser has JavaScript implementation in it and interprets the JavaScript commands. WebDriver gives you an ability to executes the JavaScript in context of the loaded browser page. The Testmate code to execute JavaScript is as below: 1 2 3 4 5 6

Webdriver | Work With Multiple Browsers | Driver Parking

Driver parking is a concept that allows working with multiple browsers without loosing the instance of any. It allows the storage of additional 5 drivers which can be switched with the host drivers by using inbuilt methods. The below test demonstrates the use of two additional drivers. 1 2 3 4 5 6 7 8

Webdriver | Launch Headless Browser Using Testmate | PhantomJS

A headless browser is a web browser without a graphical user interface. Headless browsers provide automated control of a web page in an environment similar to popular web browsers. PhantomJS is a headless WebKit scriptable with a JavaScript API. The Testmate code to execute it is as below: 1 2 3 4 5 6 7 8

Webdriver | Drag And Drop Using Testmate | Action

The action class in selenium is used for emulating complex user gestures. The sample of action using Testmate, performing drag and drop operation is as below: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 'Initialize the driver Call wd.InitializeFireFoxDriver("C:\Users\jaska\Desktop\selenium")   'Navigate to the requireed

Webdriver | Selenium Grid | Remote Driver

Selenium- Grid allows you to run your tests on different machines against different browsers in parallel. That is, running multiple tests at the same time against different machines running different browsers and operating systems. Essentially, Selenium-Grid supports distributed test execution. It allows for running your tests in a distributed test execution environment. To learn more about the

Webdriver | Launch Chrome Browser Using Testmate | Proxy | Arguments

Webdriver needs chromedriver.exe file to launch a chrome browser. The below code launch the chrome browser using Testmate. It demonstrates various available options like add arguments and set proxy. For more information on the available constructors, simply mouse-over on the method name in the tool. InitializeChromeDriver method takes the path of chromedriver.exe as a parameter.