Hi @yogesh.harsh, maybe give this a try: How to start firefox in private browsing mode?
This works for me, just tried it. Or save the attached firefox.properties file to the C:\Users\yourname\KatalonProjects\YourProject\settings\internal folder. [com.kms.katalon.core.webui.firefox.properties|attachment]
C:\Users
| |--yourname
| |--KatalonProjects
| |--YourProject
| |--settings
| |--internal
com.kms.katalon.core.webui.firefox.properties (62 Bytes)
Browser Desired Capabilities properties.file settings for enabling private mode:
- Firefox: com.kms.katalon.core.webui.firefox.properties
{“FIREFOX_DRIVER”:{“moz:firefoxOptions”:{“args”:[“private”]}}}- Chrome: com.kms.katalon.core.webui.chrome.properties
{“CHROME_DRIVER”:{“args”:[“–incognito”]}}- Edge Chromium: com.kms.katalon.core.webui.edge chromium.properties
{“EDGE_CHROMIUM_DRIVER”:{“ms:edgeOptions”:{“args”:[“-inprivate”]}}}
To use private mode from a Chrome browser, the following can be used:
import section
import com.kms.katalon.core.configuration.RunConfiguration as RunConfiguration
Test case body
RunConfiguration.setWebDriverPreferencesProperty(‘args’, [‘–incognito’])
//Test steps…