public class

UiObjectNotFoundException

extends java.lang.Exception

 java.lang.Object

↳java.lang.Throwable

↳java.lang.Exception

↳androidx.test.uiautomator.UiObjectNotFoundException

Gradle dependencies

compile group: 'androidx.test.uiautomator', name: 'uiautomator', version: '2.4.0-alpha01'

  • groupId: androidx.test.uiautomator
  • artifactId: uiautomator
  • version: 2.4.0-alpha01

Artifact androidx.test.uiautomator:uiautomator:2.4.0-alpha01 it located at Google repository (https://maven.google.com/)

Androidx artifact mapping:

androidx.test.uiautomator:uiautomator com.android.support.test.uiautomator:uiautomator

Androidx class mapping:

androidx.test.uiautomator.UiObjectNotFoundException android.support.test.uiautomator.UiObjectNotFoundException

Overview

Generated in test runs when a UiSelector selector could not be matched to any UI element displayed.

Summary

Constructors
publicUiObjectNotFoundException(java.lang.String msg)

publicUiObjectNotFoundException(java.lang.String detailMessage, java.lang.Throwable throwable)

publicUiObjectNotFoundException(java.lang.Throwable throwable)

Methods
from java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructors

public UiObjectNotFoundException(java.lang.String msg)

public UiObjectNotFoundException(java.lang.String detailMessage, java.lang.Throwable throwable)

public UiObjectNotFoundException(java.lang.Throwable throwable)

Source

/*
 * Copyright (C) 2012 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package androidx.test.uiautomator;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

/**
 * Generated in test runs when a {@link UiSelector} selector could not be matched
 * to any UI element displayed.
 */
public class UiObjectNotFoundException extends Exception {

    private static final long serialVersionUID = 1L;

    public UiObjectNotFoundException(@NonNull String msg) {
        super(msg);
    }

    public UiObjectNotFoundException(@NonNull String detailMessage, @Nullable Throwable throwable) {
        super(detailMessage, throwable);
    }

    public UiObjectNotFoundException(@Nullable Throwable throwable) {
        super(throwable);
    }
}