Webdriver | Launch Headless Browser Using Testmate | PhantomJS


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/pkq2w3icktox/public_html/wp-content/plugins/wp-syntax/wp-syntax.php on line 383
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


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/pkq2w3icktox/public_html/wp-content/plugins/wp-syntax/wp-syntax.php on line 383
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


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/pkq2w3icktox/public_html/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/pkq2w3icktox/public_html/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/pkq2w3icktox/public_html/wp-content/plugins/wp-syntax/wp-syntax.php on line 383
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


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/pkq2w3icktox/public_html/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/pkq2w3icktox/public_html/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/pkq2w3icktox/public_html/wp-content/plugins/wp-syntax/wp-syntax.php on line 383
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.

Webdriver | Internet Explorer | Set Proxy Using Testmate


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/pkq2w3icktox/public_html/wp-content/plugins/wp-syntax/wp-syntax.php on line 383
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


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/pkq2w3icktox/public_html/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/pkq2w3icktox/public_html/wp-content/plugins/wp-syntax/wp-syntax.php on line 383
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

Webdriver | Launch Internet Explorer Using Testmate | VBScript


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/pkq2w3icktox/public_html/wp-content/plugins/wp-syntax/wp-syntax.php on line 383
The below code launch the internet explorer ,navigates the URL and perform some search operations. The path to IE driver server is passed in the InitializeInternetExplorerOptions method. Vbscript 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15   'Initialize the options (Optional but recommended) Call wd.InitializeInternetExplorerOptions()   'Set IE

UI Automation | Advance Script With OR


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/pkq2w3icktox/public_html/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/pkq2w3icktox/public_html/wp-content/plugins/wp-syntax/wp-syntax.php on line 383
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 | Set Root For AUT


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/pkq2w3icktox/public_html/wp-content/plugins/wp-syntax/wp-syntax.php on line 383
The code below demonstrates the usage of SetRoot method for UI automation.  When a root is set, the Testmate engine accepts the newly set object as parent instead of the desktop. By doing this, the performance of the scripts can be improved as it reduces the time of object identification. 1 2 3 4 5

UI Automation | Basic Script | Calculator


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/pkq2w3icktox/public_html/wp-content/plugins/wp-syntax/wp-syntax.php on line 383
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"