Skip to content

Desktop Applications

Jeremy Kao edited this page May 7, 2015 · 2 revisions

(Python)

from selenium.webdriver import Remote, DesiredCapabilities

desired_caps = {
    #'platformName': 'Windows',
    'appID': 'your-product-name',
    'app': 'http://your-ci-server/path/to/your/installer.exe',
    'checkInstalledCommand': r'C:\path\to\your\check-installed.bat',
    'openCommand': r'C:\path\to\your\open-app.bat',
    'closeCommand': r'C:\path\to\your\close-app-if-needed.bat',
    'installCommand': r'C:\path\to\your\install-if-needed.bat',
    'uninstallCommand': r'C:\path\to\your\uninstall-if-needed.bat',
    'backupCommand': r'C:\path\to\your\backup-states-if-needed.bat',
    'restoreCommand': r'C:\path\to\your\restore-states-if-needed.bat',
}

driver = Remote('http://your-winappdriver-server:4444/wd/hub', desired_caps)
Clone this wiki locally