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