Test Data Manager

 View Only
  • 1.  javelin x selenium problem with edge

    Posted Jan 15, 2025 09:14 AM
    We are facing a problem when trying to use Javelin with Selenium when we try to call the EDGE browser. The error mentioned below occurs.
     
    We have already updated the driver correctly but the error persists.
     
    The issue is that we need to use EDGE with Javelin Selenium in our automation due to the characteristics of the client we are working with.
     
    Another issue, we have already updated the suggested browser options that appear on the error screen.
     
    We would like to know if anyone has a solution.


    ------------------------------
    Valdomiro Ramos
    ------------------------------


  • 2.  RE: javelin x selenium problem with edge

    Broadcom Employee
    Posted Jan 15, 2025 10:40 AM
      |   view attached

    Good morning Valdomiro, how are you?
    This error occurs because the EdgeDriver option is not accepted as a valid Driver property value in the OpenBrowser activity in Javelin.

    When you pass an unrecognized value in this field or do not create a Driver instance manually, it defines that the correct browser would be IE.

    To be able to use Edge, you need to follow these steps:
    1 - Download the appropriate EdgeDriver and place it in a folder where it can be accessed
    2 - Rename it to MicrosoftWebDriver.exe (you must follow this name)
    3 - Create a variable to store the directory where the EdgeDriver is located, of type String (the value must be the directory and not the full path)
    4 - Manually initialize an EdgeDriver object in Javelin, referencing the variable created in the previous step as a parameter
    5 - Define your EdgeDriver as the instance of WebDriver to be used by setting the instance property of a variable of type GlobalSettings
    6 - Remember not to define the Driver property of the OpenBrowser activity in this case

    After step 6, you will be able to use the regular Javelin Selenium  activities to build up your flow, since your instance was defined globally for the flow. An example flow is attached.

    In case the instance is not defined, the valid options for the Driver property are:
    ChromeDriver
    InternetExplorerDriver
    FirefoxDriver
    RemoteWebDriver

    The InternetExplorerDriver option is the default if it is not possible to determine the chosen type.

    Thanks,


    Attachment(s)

    zip
    EdgeDriver.vwf.zip   2 KB 1 version