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 Reply Children
No Data