Running a script from the Microsoft Edge browser

You can use IBM® Rational® Functional Tester to play back test scripts using the Microsoft Edge browser.

Before you begin

Verify that Microsoft Edge browser v40.15063.0.0 or later is installed on your system. To check the version:

  1. Start Microsoft Edge.
  2. Click the More (…) menu.
  3. Select Settings, and then scroll down to the bottom.

Procedure

  1. Install the Microsoft WebDriver.

    The method of web driver installation might differ depending on the browser version. Based on the browser version, you can follow one of these methods:

    Edge browser versionWebDriver installation method
    Edge 44 You must run the following command in the elevated command prompt:

    DISM.exe /Online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0

    Edge 42 and earlier You must download and install the latest version of Microsoft WebDriver server in the default location for both 32-bit and 64-bit Windows 10 computers. Refer to the Microsoft Edge portal.
    Edge 80 and later You can download the WebDriver and place it in the IBM\IBMIMShared\plugins\com.ibm.rational.test.rtw.webgui.selenium_<plugin version>\drivers folder. Alternatively, you can first run a Web UI test in the Edge browser. This gives you the option to automatically resolve the driver incompatibility. You can then run Functional tests in the Edge browser.
  2. Optional: Set the environment variable if you installed the WebDriver in a different location.

    You must follow these steps to set the environment variable for Edge 42 and earlier:

    1. In the Control Panel, click System > Advanced system settings > Advanced > Environment variables.
    2. In System Variables, click New, and in Variable name, enter webdriver.edge.driver.
    3. In the Variable value field, enter the path to the MicrosoftWebDriver.exe and click OK.
  3. Open the ivory.properties file in <SDP_DIRECTORY>\FunctionalTester\bin\ and change the line #rational.test.ft.timeout_pb_event_consumed=1000 to rational.test.ft.timeout_pb_event_consumed=0.
    Note:
    • You must remove # and change 1000 to 0.
    • This step is not applicable for Edge 80 and later.
  4. Restart Rational® Functional Tester if you have completed step 2 and 3.
  5. Start the Edge browser using either startBrowser() or startApp().
    • To use startBrowser(): startBrowser("Edge", "https://www.google.co.in/");
    • To use startApp():
      1. ClickConfigure > Enable Environments for Testing > Web Browsers and click Add.
      2. Browse to C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe and click Add.
      3. Add an HTML application and select Edge as the browser in the Configure > Configure Applications for Testing wizard.
  6. Add sleep() of at least 15 seconds after startBrowser() or startApp().