Running a script from the Microsoft Edge browser

You can use HCL OneTest™ UI 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. Enable Windows 10 Developer Mode.
    1. Click the Windows Start menu.
    2. Type Settings and then press Enter.
    3. Click Update & Security > For developers > Developer mode. For further details, see https://docs.microsoft.com/en-us/windows/uwp/get-started/enable-your-device-for-development.
  2. Download the Microsoft WebDriver for Edge browser from https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver.
  3. Set the environment variable named webdriver.edge.driver with the full path to the installation file named MicrosoftWebDriver.exe.
    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.
  4. Use one of the following methods to install the Edge extension:
    • Open the Windows command prompt as Administrator and run the following command: powershell Add-AppxPackage <SDP_DIRECTORY>\FunctionalTester\bin\enabler\FTEdgeExtension.appx OR
    • Open Windows PowerShell as Administrator and run the following command: Add-AppxPackage <SDP_DIRECTORY>\FunctionalTester\bin\enabler\FTEdgeExtension.appx.
  5. 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.
  6. (Edge 41 and 42 only) Copy the contents of the Edge Extensions folder. Typically, you can find this in C:\Program Files\WindowsApps\EdgeExtension\Extension.
  7. (Edge 41 and 42 only) Go to C:\Users\<User_name>\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\LocalState, create a folder named Extensions and paste the contents.
  8. Start HCL OneTest UI.
  9. Open Window > Preferences > Functional Test > Playback and select Play back with Web UI Extension .
  10. Click OK.
  11. 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.
  12. Add sleep() of at least 15 seconds after startBrowser() or startApp().
Feedback