2015-10-26 64 views

回答

2

請找到的代碼C#語言以下和平:

DesiredCapabilities capabilities = new DesiredCapabilities(); 
TestCapabilities testCapabilities = new TestCapabilities(); 

    testCapabilities.App = ""; 
    testCapabilities.AutoWebView = true; 
    testCapabilities.AutomationName = ""; 
    testCapabilities.BrowserName = String.Empty; // Leave empty otherwise you test on browsers 
    testCapabilities.DeviceName = "Needed if testing on IOS on a specific device. This will be the UDID"; 
    testCapabilities.Platform = TestCapabilities.DevicePlatform.IOS; // Or Android 
    testCapabilities.PlatformVersion = String.Empty; // Not really needed 

    testCapabilities.AssignAppiumCapabilities(ref capabilities); 
    driver = new AppiumDriver(testServerAddress, capabilities, INIT_TIMEOUT_SEC); 
    driver.Manage().Timeouts().ImplicitlyWait(IMPLICIT_TIMEOUT_SEC); 
相關問題