Category: Webdriver

Webdriver | Launch Edge Browser Using Testmate | VBScript

The below code launch the Edge browser using Testmate. Webdriver needs MicrosoftWebDriver.exe file to launch chrome browser. Download the latest version here 1 2 3 4 5 6 7 8 9 10 11 12 13 14 'Initialize edge driver wd.EdgeInitializeDriver("C:\Users\...\EdgeDriverPath")   'Navigate the URL wd.NavigateToUrl("")   'Highlight the control wd.Highlight("id::email")   'Send Keys in Email textbox

Webdriver | Execute JavaScript Using Testmate

JavaScript is one of the most preferred language used in the web browsers. A Browser has JavaScript implementation in it and interprets the JavaScript commands. WebDriver gives you a 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

Webdriver | Work With Multiple Browsers | Driver Parking

Driver parking is a concept which 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 | 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.FFInitializeDriver("C:\Program Files (x86)\Mozilla Firefox\firefox.exe")  

Webdriver | Selenium Grid | Remote Driver

Selenium- Grid allows you 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 support distributed test execution. It allows for running your tests in a distributed test execution environment. To learn more about grid click

Webdriver | Launch Chrome Browser Using Testmate | Proxy | Arguments

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

Webdriver | Launch Internet Explorer Using Testmate | VBScript

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 IEInitializeDriver method. Vbscript 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 'Re initialize the options Call wd.IEReInitializeOptions()   'Set the options