test_class.declarator: browser
test_class.original_string: InBrowser browser;
test_class.type: InBrowser
test_class.var_name: browser
test_class.file: jdollarx/src/test/java/com/github/loyada/jdollarx/CustomMatchers/CustomMatchersTest.java
test_class.identifier: CustomMatchersTest
test_case.body: @Test
      public void hasNoElementFailed() {
          when(browser.find(any())).thenReturn(mock(WebElement.class));
          try {
              assertThat(browser, CustomMatchers.hasNoElement(div));
              fail("should fail");
          } catch (AssertionError e) {
              assertThat(e.getMessage(), is(equalTo("\nExpected: browser page does not contain div\n     but: div is present")));
          }
      }
test_case.class_method_signature: CustomMatchersTest.hasNoElementFailed()
test_case.full_signature: @Test public void hasNoElementFailed()
test_case.identifier: hasNoElementFailed
test_case.invocations: thenReturn when find any mock assertThat hasNoElement fail assertThat getMessage is equalTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void hasNoElementFailed()
focal_class.file: jdollarx/src/main/java/com/github/loyada/jdollarx/custommatchers/CustomMatchers.java
focal_class.identifier: CustomMatchers
focal_class.class_method_signature: CustomMatchers.getWaiter(InBrowser browser)
focal_class.full_signature: private static Wait<WebDriver> getWaiter(InBrowser browser)
focal_class.identifier: getWaiter
focal_class.modifiers: private static
focal_class.parameters: (InBrowser browser)
focal_class.return: Wait<WebDriver>
focal_class.signature: Wait<WebDriver> getWaiter(InBrowser browser)
focal_class.class_method_signature: CustomMatchers.hasElement(final Path el)
focal_class.full_signature: public static Matcher<InBrowser> hasElement(final Path el)
focal_class.identifier: hasElement
focal_class.modifiers: public static
focal_class.parameters: (final Path el)
focal_class.return: Matcher<InBrowser>
focal_class.signature: Matcher<InBrowser> hasElement(final Path el)
focal_class.class_method_signature: CustomMatchers.isPresent(int nTimes)
focal_class.full_signature: public static IsPresentNTimes isPresent(int nTimes)
focal_class.identifier: isPresent
focal_class.modifiers: public static
focal_class.parameters: (int nTimes)
focal_class.return: IsPresentNTimes
focal_class.signature: IsPresentNTimes isPresent(int nTimes)
focal_class.class_method_signature: CustomMatchers.isPresent()
focal_class.full_signature: public static IsPresent isPresent()
focal_class.identifier: isPresent
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: IsPresent
focal_class.signature: IsPresent isPresent()
focal_class.class_method_signature: CustomMatchers.hasText(String text)
focal_class.full_signature: public static HasText hasText(String text)
focal_class.identifier: hasText
focal_class.modifiers: public static
focal_class.parameters: (String text)
focal_class.return: HasText
focal_class.signature: HasText hasText(String text)
focal_class.class_method_signature: CustomMatchers.hasElements(Path path)
focal_class.full_signature: public static HasElements hasElements(Path path)
focal_class.identifier: hasElements
focal_class.modifiers: public static
focal_class.parameters: (Path path)
focal_class.return: HasElements
focal_class.signature: HasElements hasElements(Path path)
focal_class.class_method_signature: CustomMatchers.isPresentIn(final InBrowser browser)
focal_class.full_signature: public static Matcher<Path> isPresentIn(final InBrowser browser)
focal_class.identifier: isPresentIn
focal_class.modifiers: public static
focal_class.parameters: (final InBrowser browser)
focal_class.return: Matcher<Path>
focal_class.signature: Matcher<Path> isPresentIn(final InBrowser browser)
focal_class.class_method_signature: CustomMatchers.isPresentIn(final Document document)
focal_class.full_signature: public static Matcher<Path> isPresentIn(final Document document)
focal_class.identifier: isPresentIn
focal_class.modifiers: public static
focal_class.parameters: (final Document document)
focal_class.return: Matcher<Path>
focal_class.signature: Matcher<Path> isPresentIn(final Document document)
focal_class.class_method_signature: CustomMatchers.isDisplayedIn(final InBrowser browser)
focal_class.full_signature: public static Matcher<Path> isDisplayedIn(final InBrowser browser)
focal_class.identifier: isDisplayedIn
focal_class.modifiers: public static
focal_class.parameters: (final InBrowser browser)
focal_class.return: Matcher<Path>
focal_class.signature: Matcher<Path> isDisplayedIn(final InBrowser browser)
focal_class.class_method_signature: CustomMatchers.isNotDisplayedIn(final InBrowser browser)
focal_class.full_signature: public static Matcher<Path> isNotDisplayedIn(final InBrowser browser)
focal_class.identifier: isNotDisplayedIn
focal_class.modifiers: public static
focal_class.parameters: (final InBrowser browser)
focal_class.return: Matcher<Path>
focal_class.signature: Matcher<Path> isNotDisplayedIn(final InBrowser browser)
focal_class.class_method_signature: CustomMatchers.isSelectedIn(final InBrowser browser)
focal_class.full_signature: public static Matcher<Path> isSelectedIn(final InBrowser browser)
focal_class.identifier: isSelectedIn
focal_class.modifiers: public static
focal_class.parameters: (final InBrowser browser)
focal_class.return: Matcher<Path>
focal_class.signature: Matcher<Path> isSelectedIn(final InBrowser browser)
focal_class.class_method_signature: CustomMatchers.isEnabledIn(final InBrowser browser)
focal_class.full_signature: public static Matcher<Path> isEnabledIn(final InBrowser browser)
focal_class.identifier: isEnabledIn
focal_class.modifiers: public static
focal_class.parameters: (final InBrowser browser)
focal_class.return: Matcher<Path>
focal_class.signature: Matcher<Path> isEnabledIn(final InBrowser browser)
focal_class.class_method_signature: CustomMatchers.hasNoElement(final Path el)
focal_class.full_signature: public static Matcher<InBrowser> hasNoElement(final Path el)
focal_class.identifier: hasNoElement
focal_class.modifiers: public static
focal_class.parameters: (final Path el)
focal_class.return: Matcher<InBrowser>
focal_class.signature: Matcher<InBrowser> hasNoElement(final Path el)
focal_class.class_method_signature: CustomMatchers.isAbsentFrom(final InBrowser browser)
focal_class.full_signature: public static Matcher<Path> isAbsentFrom(final InBrowser browser)
focal_class.identifier: isAbsentFrom
focal_class.modifiers: public static
focal_class.parameters: (final InBrowser browser)
focal_class.return: Matcher<Path>
focal_class.signature: Matcher<Path> isAbsentFrom(final InBrowser browser)
focal_class.class_method_signature: CustomMatchers.isAbsentFrom(final Document document)
focal_class.full_signature: public static Matcher<Path> isAbsentFrom(final Document document)
focal_class.identifier: isAbsentFrom
focal_class.modifiers: public static
focal_class.parameters: (final Document document)
focal_class.return: Matcher<Path>
focal_class.signature: Matcher<Path> isAbsentFrom(final Document document)
focal_class.class_method_signature: CustomMatchers.pathExistsInDocument(Document document, Path el)
focal_class.full_signature: private static boolean pathExistsInDocument(Document document, Path el)
focal_class.identifier: pathExistsInDocument
focal_class.modifiers: private static
focal_class.parameters: (Document document, Path el)
focal_class.return: boolean
focal_class.signature: boolean pathExistsInDocument(Document document, Path el)
focal_method.body: public static Matcher<InBrowser> hasNoElement(final Path el) {
          return new TypeSafeMatcher<InBrowser>() {
              @Override
              public void describeTo(final Description description) {
                  description.appendText("browser page does not contain " + CustomMatchersUtil.wrap(el));
              }
  
              @Override
              protected void describeMismatchSafely(final InBrowser browser, final
              Description mismatchDescription) {
                  mismatchDescription.appendText(el.toString() + " is present");
              }
  
              @Override
              protected boolean matchesSafely(final InBrowser browser) {
                  return browser.isPresent(PathOperators.not(el));
              }
          };
      }
focal_method.class_method_signature: CustomMatchers.hasNoElement(final Path el)
focal_method.full_signature: public static Matcher<InBrowser> hasNoElement(final Path el)
focal_method.identifier: hasNoElement
focal_method.invocations: appendText wrap appendText toString isPresent not
focal_method.modifiers: public static
focal_method.parameters: (final Path el)
focal_method.return: Matcher<InBrowser>
focal_method.signature: Matcher<InBrowser> hasNoElement(final Path el)