Привет, я хочу настроить красный хром в частном режиме и настроить путь загрузки в Katalon Studio, но он не работает, может кто -нибудь исправить его < /p>
@BeforeTestCase
def sampleBeforeTestCaseEdge(TestCaseContext testCaseContext) {
RunConfiguration.setWebDriverPreferencesProperty('args', [
'--inprivate',
'--no-sandbox',
'--start-maximized',
'--disable-extensions',
'--disable-dev-shm-usage',
'--safebrowsing-disable-extension-blacklist',
'--safebrowsing-disable-download-protection',
'--disable-features=DownloadBubble,DownloadBubbleV2'
])
RunConfiguration.setWebDriverPreferencesProperty('edgeOptions.prefs', [
'download.default_directory': GlobalVariable.downloadPath,
'savefile.default_directory': GlobalVariable.downloadPath,
'download.prompt_for_download': false,
'download.extensions_to_open': 'application/xml',
'safebrowsing.enabled': false
])
WebUI.openBrowser('https://the-internet.herokuapp.com/')
}
Подробнее здесь: https://stackoverflow.com/questions/795 ... in-katalon
Установите частный режим и путь загрузки для Edge Chromium в Каталоне ⇐ Javascript
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение