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 isPresentNTimesOrLessFailed() {
          when(browser.findPageWithNumberOfOccurrences(any(), eq(5), eq(orLess))).thenThrow(new NoSuchElementException(""));
          when(browser.numberOfAppearances(any())).thenReturn(1);
          try {
              assertThat(span.inside(div), CustomMatchers.isPresent(5).timesOrLessIn(browser));
              fail("should fail");
          } catch (AssertionError e) {
              assertThat(e.getMessage(), is(equalTo("\nExpected: browser page contains (span, inside div) at most 5 times\n     but: (span, inside div) appears 1 time")));
          }
      }
test_case.class_method_signature: CustomMatchersTest.isPresentNTimesOrLessFailed()
test_case.full_signature: @Test public void isPresentNTimesOrLessFailed()
test_case.identifier: isPresentNTimesOrLessFailed
test_case.invocations: thenThrow when findPageWithNumberOfOccurrences any eq eq thenReturn when numberOfAppearances any assertThat inside timesOrLessIn isPresent fail assertThat getMessage is equalTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void isPresentNTimesOrLessFailed()
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 IsPresentNTimes isPresent(int nTimes) {
          return new IsPresentNTimes(nTimes);
      }
focal_method.class_method_signature: CustomMatchers.isPresent(int nTimes)
focal_method.full_signature: public static IsPresentNTimes isPresent(int nTimes)
focal_method.identifier: isPresent
focal_method.modifiers: public static
focal_method.parameters: (int nTimes)
focal_method.return: IsPresentNTimes
focal_method.signature: IsPresentNTimes isPresent(int nTimes)