Skip to content

Desktop Applications

Jeremy Kao edited this page Aug 15, 2015 · 2 revisions

Desktop Applications

(Python)

from selenium.webdriver import Remote, DesiredCapabilities

desired_caps = {
    #'platformName': 'Windows',
    'appID': 'your-product-name',
    'app': 'http://your-build-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)
## Custom Actions

TBD