How to install the chrome extension via: Project --> Settings --> Desired Capabilities --> Web UI --> Chrome

Hello Katalon community,

How to install a Chrome extension through the following path:
Project → Settings → Desired Capabilities → Web UI → Chrome.

I’ve followed the steps outlined in the documentation for installing chrome extension at runtime, but I’m encountering an issue where the “Run From Here” option is disabled.

image

Could someone please provide guidance or share insights on how to resolve this problem? Your assistance is greatly appreciated.

Thank you!

1 Like

Hi,

I found this instruction. Have you tried it yet?

@Elly_Tran,

“Run From Here” option is enabled for normal execution.

WebUI.openBrowser('https://www.google.com/')

image

However, when I attempt to install Chrome extensions at runtime using the following code, the “Run From Here” option becomes disabled:

import org.openqa.selenium.WebDriver
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions
import org.openqa.selenium.remote.DesiredCapabilities
import com.kms.katalon.core.webui.driver.DriverFactory

System.setProperty("webdriver.chrome.driver", "C:\\Users\\usuario\\katalon\\Test\\Driver\\chromedriver.exe");
ChromeOptions options = new ChromeOptions()
options.addExtensions(new File("C:\\Users\\usuario\\Desktop\\Firma-con-token.crx"))
DesiredCapabilities capabilities = new DesiredCapabilities()
capabilities.setCapability(ChromeOptions.CAPABILITY, options)
WebDriver driver = new ChromeDriver(capabilities)
DriverFactory.changeWebDriver(driver)

WebUI.navigateToUrl('https://www.google.co.in/')
WebUI.maximizeWindow()

image