katalon-studio
How to open a web site in app mode.
For example: In the run command, paste the below and click enter
chrome.exe -app = "https://forum.katalon.com/tag/web-testing"
Want to achieve the same via automation.
katalon-studio
How to open a web site in app mode.
For example: In the run command, paste the below and click enter
chrome.exe -app = "https://forum.katalon.com/tag/web-testing"
Want to achieve the same via automation.
Thanks @kazurayam. The below code solved my problem.
import org.openqa.selenium.WebDriver as WebDriver
import org.openqa.selenium.chrome.ChromeDriver as ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions as ChromeOptions
import org.openqa.selenium.remote.DesiredCapabilities as DesiredCapabilities
import com.kms.katalon.core.webui.driver.DriverFactory as DriverFactory
System.setProperty('webdriver.chrome.driver', DriverFactory.chromeDriverPath)
ChromeOptions options = new ChromeOptions()
options.addArguments("--app=https://forum.katalon.com/tag/web-testing")
options.addArguments("start-maximized");
'Disable Chrome is being controlled by automated test software'
options.setExperimentalOption("excludeSwitches", Collections.singletonList("enable-automation"))
DesiredCapabilities capabilities = new DesiredCapabilities()
capabilities.setCapability(ChromeOptions.CAPABILITY, options)
WebDriver driver = new ChromeDriver(capabilities)
DriverFactory.changeWebDriver(driver)