Category: Webdriver

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.

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 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