AmbiguousElementMatcherException

public final class AmbiguousElementMatcherException
extends RuntimeException implements EspressoException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ android.support.test.espresso.web.matcher.AmbiguousElementMatcherException


这是一个例外,表明对于给定的XPath,当预期只有1个元素时,会找到多个元素。

Summary

Public constructors

AmbiguousElementMatcherException(String xpath)

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

AmbiguousElementMatcherException

AmbiguousElementMatcherException (String xpath)

Parameters
xpath String