Error while launching MS Edge 96.0.1054.29 with Silk4j 20.5

Hi ,

     I have the below versions on my machine and i am trying to launch MS Edge using the browser Base state method

  • Silk4j 20.5
  • MS Edge 96.0.1054.29

I have followed the steps given in the below page to support the higher version of MS Edge

Testing Additional Browser Versions (microfocus.com)

  1. Placed the ms edge driver for version 96.0.1054.29 in the folder 'C:\Program Files (x86)\Silk\SilkTest\ng\WebDrivers\Windows\Edge\96.0.1054.29'
  2. updated the properties file in the path 'C:\Program Files (x86)\Silk\SilkTest\ng\WebDrivers\Common\Config\Edge'

Error message : 

  • Failed to start application 'Edge'. Window of started Edge cannot be accessed. This may be due to UAC being turned off; please make sure that UAC is enabled otherwise Edge cannot be started.

Code :

                    BrowserBaseState baseState = new BrowserBaseState("silk4j2.settings");

                     baseState.setBrowserType(BrowserType.Edge);

                     baseState.setOption(CommonOptions.OPT_SYNC_TIMEOUT, 120000);

                     baseState.setOption(CommonOptions.OPT_WAIT_RESOLVE_OBJDEF, 20000);

                     baseState.setExecutable("C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe");               

                     baseState.setWorkingDirectory("C:\\Program Files (x86)\\Microsoft\\Edge\\Application");       

                     baseState.setExecutablePattern("*\\msedge.exe");

                     baseState.setLocator("//BrowserApplication");

                     baseState.setUrl(URL);

                     baseState.execute(desktop);

                     desktop.<BrowserApplication>find("//BrowserApplication").maximize();

Please let me know the solution . I checked the 'EnableLUA' in reedit and it is enabled too

Regards,

Raghavan.S