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 findWithout() {
          when(driverMock.findElement(By.xpath("/html[not(.//div)]"))).thenReturn(webElement2);
          assertThat(InBrowserFinder.findPageWithout(driverMock, BasicPath.div), is(equalTo(webElement2)));
      }
test_case.class_method_signature: InBrowserFinderTest.findWithout()
test_case.full_signature: @Test public void findWithout()
test_case.identifier: findWithout
test_case.invocations: thenReturn when findElement xpath assertThat findPageWithout is equalTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void findWithout()
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: static WebElement findPageWithout(WebDriver driver, final Path el) {
          if (!el.getXPath().isPresent()) {
              throw new UnsupportedOperationException("findPageWithout requires a path");
          }
          final String path = el.getXPath().get();
  
          try {
              if (el.getUnderlyingSource().isPresent()) {
                  final WebElement underlying = el.getUnderlyingSource().get();
                  return underlying.findElement(By.xpath("//" + PathOperators.not(el).getXPath().get()));
              } else {
                  String processedPath = XpathUtils.doesNotExistInEntirePage(path);
                  return driver.findElement(By.xpath(processedPath));
              }
          } catch (org.openqa.selenium.NoSuchElementException ex) {
              throw new NoSuchElementException("could not find page without " + el, ex);
          }
      }
focal_method.class_method_signature: InBrowserFinder.findPageWithout(WebDriver driver, final Path el)
focal_method.full_signature: static WebElement findPageWithout(WebDriver driver, final Path el)
focal_method.identifier: findPageWithout
focal_method.invocations: isPresent getXPath get getXPath isPresent getUnderlyingSource get getUnderlyingSource findElement xpath get getXPath not doesNotExistInEntirePage findElement xpath
focal_method.modifiers: static
focal_method.parameters: (WebDriver driver, final Path el)
focal_method.return: WebElement
focal_method.signature: WebElement findPageWithout(WebDriver driver, final Path el)