How to use getWdaLaunchTimeout method of io.appium.java_client.ios.options.wda.SupportsWdaLaunchTimeoutOption class

Best io.appium code snippet using io.appium.java_client.ios.options.wda.SupportsWdaLaunchTimeoutOption.getWdaLaunchTimeout

Run io.appium automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Source: Github

2 * Licensed under the Apache License, Version 2.0 (the "License");
3 * you may not use this file except in compliance with the License.
4 * See the NOTICE file distributed with this work for additional
5 * information regarding copyright ownership.
6 * You may obtain a copy of the License at
7 *
8 *
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
17package io.appium.java_client.ios.options.wda;
19import io.appium.java_client.internal.CapabilityHelpers;
20import io.appium.java_client.remote.options.BaseOptions;
21import io.appium.java_client.remote.options.CanSetCapability;
22import org.openqa.selenium.Capabilities;
24import java.time.Duration;
25import java.util.Optional;
27public interface SupportsWdaLaunchTimeoutOption<T extends BaseOptions<T>> extends
28        Capabilities, CanSetCapability<T> {
29    String WDA_LAUNCH_TIMEOUT_OPTION = "wdaLaunchTimeout";
31    /**
32     * Timeout to wait for WebDriverAgent to be pingable,
33     * e.g. finishes building. Defaults to 60000ms.
34     *
35     * @param timeout Timeout to wait until WDA is listening.
36     * @return self instance for chaining.
37     */
38    default T setWdaLaunchTimeout(Duration timeout) {
39        return amend(WDA_LAUNCH_TIMEOUT_OPTION, timeout.toMillis());
40    }
42    /**
43     * Get the maximum timeout to wait until WDA is listening.
44     *
45     * @return Timeout value.
46     */
47    default Optional<Duration> getWdaLaunchTimeout() {
48        return Optional.ofNullable(
49                CapabilityHelpers.toDuration(getCapability(WDA_LAUNCH_TIMEOUT_OPTION))
50        );
51    }
Full Screen

Accelerate Your Automation Test Cycles With LambdaTest

Leverage LambdaTest’s cloud-based platform to execute your automation tests in parallel and trim down your test execution time significantly. Your first 100 automation testing minutes are on us.

Try LambdaTest

Most used method in SupportsWdaLaunchTimeoutOption

Trigger getWdaLaunchTimeout code on LambdaTest Cloud Grid

Execute automation tests with getWdaLaunchTimeout on a cloud-based Grid of 3000+ real browsers and operating systems for both web and mobile applications.

Test now for Free

We use cookies to give you the best experience. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. Learn More in our Cookies policy, Privacy & Terms of service

Allow Cookie

I hope you find the best code examples for your project.

If you want to accelerate automated browser testing, try LambdaTest. Your first 100 automation testing minutes are FREE.

Sarah Elson (Product & Growth Lead)