test_class.declarator: driverMock
test_class.modifier: private
test_class.original_string: private WebDriver driverMock;
test_class.type: WebDriver
test_class.var_name: driverMock
test_class.declarator: webElement
test_class.modifier: private
test_class.original_string: private WebElement webElement, webElement2;
test_class.type: WebElement
test_class.var_name: webElement
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/InBrowserFinderTest.java
test_class.identifier: InBrowserFinderTest
test_case.body: @Test
      public void findAllUnderlying() {
          List<WebElement> expected = Collections.singletonList(webElement2);
          when(webElement.findElements(By.xpath(BasicPath.div.getXPath().get()))).thenReturn(expected);
          Path path = BasicPath.builder().withUnderlying(webElement).withXpath("div").build();
          assertThat(InBrowserFinder.findAll(driverMock, path), is(equalTo(expected)));
      }
test_case.class_method_signature: InBrowserFinderTest.findAllUnderlying()
test_case.full_signature: @Test public void findAllUnderlying()
test_case.identifier: findAllUnderlying
test_case.invocations: singletonList thenReturn when findElements xpath get getXPath build withXpath withUnderlying builder assertThat findAll is equalTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void findAllUnderlying()
focal_class.file: jdollarx/src/main/java/com/github/loyada/jdollarx/InBrowserFinder.java
focal_class.identifier: InBrowserFinder
focal_class.class_method_signature: InBrowserFinder.find(WebDriver driver, final Path el)
focal_class.full_signature: static WebElement find(WebDriver driver, final Path el)
focal_class.identifier: find
focal_class.modifiers: static
focal_class.parameters: (WebDriver driver, final Path el)
focal_class.return: WebElement
focal_class.signature: WebElement find(WebDriver driver, final Path el)
focal_class.class_method_signature: InBrowserFinder.findPageWithout(WebDriver driver, final Path el)
focal_class.full_signature: static WebElement findPageWithout(WebDriver driver, final Path el)
focal_class.identifier: findPageWithout
focal_class.modifiers: static
focal_class.parameters: (WebDriver driver, final Path el)
focal_class.return: WebElement
focal_class.signature: WebElement findPageWithout(WebDriver driver, final Path el)
focal_class.class_method_signature: InBrowserFinder.findAll(WebDriver driver, final Path el)
focal_class.full_signature: public static List<WebElement> findAll(WebDriver driver, final Path el)
focal_class.identifier: findAll
focal_class.modifiers: public static
focal_class.parameters: (WebDriver driver, final Path el)
focal_class.return: List<WebElement>
focal_class.signature: List<WebElement> findAll(WebDriver driver, final Path el)
focal_class.class_method_signature: InBrowserFinder.findPageWithNumberOfOccurrences(WebDriver driver, final Path el, int numberOfOccurrences)
focal_class.full_signature: public static WebElement findPageWithNumberOfOccurrences(WebDriver driver, final Path el, int numberOfOccurrences)
focal_class.identifier: findPageWithNumberOfOccurrences
focal_class.modifiers: public static
focal_class.parameters: (WebDriver driver, final Path el, int numberOfOccurrences)
focal_class.return: WebElement
focal_class.signature: WebElement findPageWithNumberOfOccurrences(WebDriver driver, final Path el, int numberOfOccurrences)
focal_class.class_method_signature: InBrowserFinder.findPageWithNumberOfOccurrences(WebDriver driver, final Path el, int numberOfOccurrences, RelationOperator relationOperator)
focal_class.full_signature: public static WebElement findPageWithNumberOfOccurrences(WebDriver driver, final Path el, int numberOfOccurrences, RelationOperator relationOperator)
focal_class.identifier: findPageWithNumberOfOccurrences
focal_class.modifiers: public static
focal_class.parameters: (WebDriver driver, final Path el, int numberOfOccurrences, RelationOperator relationOperator)
focal_class.return: WebElement
focal_class.signature: WebElement findPageWithNumberOfOccurrences(WebDriver driver, final Path el, int numberOfOccurrences, RelationOperator relationOperator)
focal_class.class_method_signature: InBrowserFinder.processedPathForFind(final String path)
focal_class.full_signature: private static String processedPathForFind(final String path)
focal_class.identifier: processedPathForFind
focal_class.modifiers: private static
focal_class.parameters: (final String path)
focal_class.return: String
focal_class.signature: String processedPathForFind(final String path)
focal_method.body: public static List<WebElement> findAll(WebDriver driver, final Path el) {
          final Optional<String> path = el.getXPath();
          if (el.getUnderlyingSource().isPresent()) {
              WebElement underlying = el.getUnderlyingSource().get();
              if (path.isPresent()) {
                  return underlying.findElements(By.xpath(path.get()));
              } else {
                  return Collections.singletonList(underlying);
              }
          } else {
              if (path.isPresent()) {
                  String processedPath = processedPathForFind(path.get());
                  return driver.findElements(By.xpath(processedPath));
  
              } else {
                  throw new IllegalArgumentException("webel is empty"); // should never happen
              }
          }
      }
focal_method.class_method_signature: InBrowserFinder.findAll(WebDriver driver, final Path el)
focal_method.full_signature: public static List<WebElement> findAll(WebDriver driver, final Path el)
focal_method.identifier: findAll
focal_method.invocations: getXPath isPresent getUnderlyingSource get getUnderlyingSource isPresent findElements xpath get singletonList isPresent processedPathForFind get findElements xpath
focal_method.modifiers: public static
focal_method.parameters: (WebDriver driver, final Path el)
focal_method.return: List<WebElement>
focal_method.signature: List<WebElement> findAll(WebDriver driver, final Path el)