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