This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Getting an error 'com.hp.lft.sdk.GeneralLeanFtException: The browser is not installed: chrome' during test replay but i am able to identify objects in the chrome window

Hi ,

  I am trying to launch chrome using UFT Developer's BrowserFactory and it works fine with IE. The error message is 'com.hp.lft.sdk.GeneralLeanFtException: The browser is not installed: chrome' 

I have already installed the 'Agent.crx' file from the installation folder in the browser by drag and drop method and the extension is visible and enabled in chrome

Replaced the chromedriver.exe in C:\Program Files (x86)\Micro Focus\UFT Developer\bin\WebDriver to match the version i am using

I am able to spy objects in chrome but get an error on test replay alone

  • Chrome version - 105.0.5195.102
  • Windows 10

Code :

ModifiableSDKConfiguration config = new ModifiableSDKConfiguration();
    	config.setServerAddress(new URI("ws://localhost:5095"));
    	SDK.init(config);
    	
    	Browser browser=BrowserFactory.launch(BrowserType.CHROME);
    	browser.navigate("https://www.google.com");
    	
    	ApplicationModel obj=new ApplicationModel(browser);
    	obj.GooglePage().SearchEditField().highlight();
    	obj.GooglePage().SearchEditField().setValue("uft tutorial");

Please let me know if i am missing something

Regards,

Raghavan.S

Parents
  • 0

    I also get this for two of my client pcs. 

    I am able to inspect the application, but the execution does not kick off.

    See my log from VS here:

    Test method <xxx>Test.<xxx>.SokAvansert threw exception:

    HP.LFT.SDK.GeneralLeanFtException: The browser is not installed: chrome

     

      Stack Trace:

    BrowserFactoryInstance.HandleReplayError(Int32 errorCode, IDictionary`2 data)

    CommunicationClient.HandleError(Action`2 onError, Int32 status, IDictionary`2 data)

    CommunicationClient.Send(String messageType, IDictionary`2 data, Action`2 onError)

    BrowserFactoryInstance.InternalLaunch(Dictionary`2 launchInfo)

    <>c__DisplayClass8_0.<Launch>b__0()

    OperationExecutionWrapper.ExecuteWithEventsInternally[T](ITestObject testObject, Object additionalInfo, Func`1 innerAction, MethodBase methodInfo, Boolean reportOnlyOnError, Object[] arguments)

    OperationExecutionWrapper.ExecuteWithEvents[T](ITestObject testObject, Object additionalInfo, Func`1 innerAction, MethodBase methodInfo, Boolean reportOnlyOnError, Object[] arguments)

    OperationExecutionWrapper.ExecuteWithEvents[T1,TR](Func`1 innerAction, Func`2 originalMethod, T1 param1, Boolean reportOnlyOnError, ITestObject testObject, Object additionalInfo)

    BrowserFactoryInstance.Launch(BrowserType browserType)

    BrowserFactory.Launch(BrowserType browserType)

    PreTest<xxx>.SokAvansert() line 73

Reply
  • 0

    I also get this for two of my client pcs. 

    I am able to inspect the application, but the execution does not kick off.

    See my log from VS here:

    Test method <xxx>Test.<xxx>.SokAvansert threw exception:

    HP.LFT.SDK.GeneralLeanFtException: The browser is not installed: chrome

     

      Stack Trace:

    BrowserFactoryInstance.HandleReplayError(Int32 errorCode, IDictionary`2 data)

    CommunicationClient.HandleError(Action`2 onError, Int32 status, IDictionary`2 data)

    CommunicationClient.Send(String messageType, IDictionary`2 data, Action`2 onError)

    BrowserFactoryInstance.InternalLaunch(Dictionary`2 launchInfo)

    <>c__DisplayClass8_0.<Launch>b__0()

    OperationExecutionWrapper.ExecuteWithEventsInternally[T](ITestObject testObject, Object additionalInfo, Func`1 innerAction, MethodBase methodInfo, Boolean reportOnlyOnError, Object[] arguments)

    OperationExecutionWrapper.ExecuteWithEvents[T](ITestObject testObject, Object additionalInfo, Func`1 innerAction, MethodBase methodInfo, Boolean reportOnlyOnError, Object[] arguments)

    OperationExecutionWrapper.ExecuteWithEvents[T1,TR](Func`1 innerAction, Func`2 originalMethod, T1 param1, Boolean reportOnlyOnError, ITestObject testObject, Object additionalInfo)

    BrowserFactoryInstance.Launch(BrowserType browserType)

    BrowserFactory.Launch(BrowserType browserType)

    PreTest<xxx>.SokAvansert() line 73

Children
  • 0 in reply to 

    hi , I am getting the same error while running the tests through Spring tool Suite.Using the UFT version 14.53. I tried in the higher version , result was same. If anybody know the fix , pls let me know. Thanks

    org.junit.internal.runners.model.MultipleFailureException: There were 2 errors:
    java.lang.RuntimeException(com.hp.lft.sdk.GeneralLeanFtException: The browser is not installed: chrome)
    java.lang.RuntimeException(com.hp.lft.sdk.GeneralLeanFtException: The browser is not installed: chrome)
    at org.junit.runners.model.MultipleFailureException.assertEmpty(MultipleFailureException.java)