how to install plugin in google chrome using katalon studio.
Welcome to our Katalon Community, and thanks for reaching out!
Could you please share a bit more about your setup?
- Are you trying to use a specific Chrome extension while running tests?
- Do you already have the .crx file or unpacked folder for that extension?
- Are you running tests locally or on a remote setup (like CI/CD, Docker, or Selenium Grid)?
- And which versions of Katalon Studio and Chrome are you using?
With those details, our community will be able to help you better.
Bella
thank you for revert.
-
yes. it is squarex.
-
I have .crx file
-
locally
-
KS vs 9.6.0, chrome vs 139
Thanks
Use the below code
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)