Turnoff - Microsoft Edge is being controlled by automated test software

How to Turnoff “Microsoft Edge is being controlled by automated test software”

Below is my code. Ensure to select “Edge Chromium” while running the test.

image

import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import internal.GlobalVariable as GlobalVariable

// IMPORT
import com.kms.katalon.core.webui.driver.DriverFactory
import org.openqa.selenium.edge.EdgeOptions as EdgeOptions
import org.openqa.selenium.edge.EdgeDriver as EdgeDriver

System.setProperty('webdriver.edge.driver', DriverFactory.getEdgeChromiumDriverPath())

EdgeOptions options = new EdgeOptions()

List<String> args = Arrays.asList('start-maximized', 'disable-infobars', 'disable-notifications')

Map<String, Object> map = new HashMap()

map.put('args', args)

options.setCapability('ms:edgeOptions', map)

EdgeDriver driver = new EdgeDriver(options)

DriverFactory.changeWebDriver(driver)

WebUI.navigateToUrl('https://www.atlassian.com/')