Uses of Interface
com.github.loyada.jdollarx.Path
-
Packages that use Path Package Description com.github.loyada.jdollarx main package for defining Path DOM elements and browser interactioncom.github.loyada.jdollarx.custommatchers Custom Hamcrest matchers for assertions in tests - supports multiple instances of browsers, as well as assertions on a W3C Documentcom.github.loyada.jdollarx.highlevelapi Package for high level interactions.com.github.loyada.jdollarx.singlebrowser Simplified API for interaction with a single instance of browsercom.github.loyada.jdollarx.singlebrowser.custommatchers Custom Hamcrest matchers for assertions in tests - for a singleton instance of browsercom.github.loyada.jdollarx.singlebrowser.highlevelapi Package for high level interactions.com.github.loyada.jdollarx.singlebrowser.sizing Custom manipulations and evaluations of dimensions of elements or browser window size - for a singleton instance of browsercom.github.loyada.jdollarx.utils Utilities for troubleshooting -
-
Uses of Path in com.github.loyada.jdollarx
Classes in com.github.loyada.jdollarx that implement Path Modifier and Type Class Description classBasicPathThe standard implementation of Path in DollarXFields in com.github.loyada.jdollarx declared as Path Modifier and Type Field Description static PathHighLevelPaths. checkboxPathNPath. pathMethods in com.github.loyada.jdollarx that return Path Modifier and Type Method Description PathBasicPath. after(Path path)The element appears after the given pathPathPath. after(Path path)The element appears after the given pathPathBasicPath. afterSibling(Path path)The element has a preceding sibling that matches to the given Path parameterPathPath. afterSibling(Path path)The element is a sibling of the given path, and appears after itPathBasicPath. ancestorOf(Path path)PathPath. ancestorOf(Path path)The element contains the given path, i.e.static PathPathShortNames. ancestorOf(Path el)PathBasicPath. and(ElementProperty... prop)Alias equivalent to that().PathPath. and(ElementProperty... prop)Alias equivalent tothat(com.github.loyada.jdollarx.ElementProperty...).PathBasicPath. before(Path path)The element is before the given path parameterPathPath. before(Path path)The element appears before the given pathPathBasicPath. beforeSibling(Path path)The element is a sibling of the given path and appears before itPathPath. beforeSibling(Path path)The element is a sibling of the given path, and appears before itPathBasicPath. childOf(Path path)PathPath. childOf(Path path)The element is a direct child of the given pathstatic PathPathShortNames. childOf(Path el)PathBasicPath. containing(Path path)PathPath. containing(Path path)The element contains the given path, i.e.PathBasicPath. contains(Path path)PathPath. contains(Path path)The element contains the given path, i.e.PathBasicPath. descendantOf(Path path)The element is inside the given path parameterPathPath. descendantOf(Path path)The element is contained in the given path element, i.e.static PathPathShortNames. descendentOf(Path el)PathBasicPath. describedBy(String description)PathPath. describedBy(String description)A useful method to give a readable description to the path, for example: Suppose that instead of describing it's DOM positions and attributes, you prefer to describe it as "search result".static PathBasicPath. firstOccurrenceOf(Path path)First global occurrence of an element in the document.PathBasicPath. immediatelyAfterSibling(Path path)The sibling right before the current element matches to the given Path parameterPathPath. immediatelyAfterSibling(Path path)The sibling right before the element matches the given path parameterPathBasicPath. immediatelyBeforeSibling(Path path)The sibling right after the element matches the given path parameterPathPath. immediatelyBeforeSibling(Path path)The sibling right after the element matches the given path parameterPathBasicPath. inside(Path path)Element that is inside another elementPathPath. inside(Path path)Element that is inside another elementPathBasicPath. insideTopLevel()Returns an element that is explicitly inside the document.PathPath. insideTopLevel()Returns an element that is explicitly inside the document.static PathBasicPath. lastOccurrenceOf(Path path)Last global occurrence of an element in the documentstatic PathPathOperators. not(Path path)Any element that does NOT conform to the definition of the given path parametersPathBasicPath.GlobalOccurrenceNumber. of(Path path)return the nth global occurrence (in the entire document) of the given path.PathBasicPath.ChildNumber. ofType(Path path)an element that has n similar preceding siblings.PathBasicPath. or(Path path)match more than a single path.PathPath. or(Path path)match more than a single path.PathBasicPath. parentOf(Path path)PathPath. parentOf(Path path)The element is a parent of the given pathstatic PathPathShortNames. parentOf(Path el)static PathPathShortNames. siblingOf(Path el)static PathBasicPath. textNode(String text)Define a text node in the DOM, with the given text.PathBasicPath. that(ElementProperty... prop)returns a path with the provided properties.PathPath. that(ElementProperty... prop)returns a path with the provided properties.PathBasicPath. withClass(String cssClass)Equivalent tothis.that(hasClass(cssClass))PathPath. withClass(String cssClass)The element has the given class namePathBasicPath. withClasses(String... cssClasses)Equivalent tothis.that(hasClasses(cssClasses))PathPath. withClasses(String... cssClasses)The element has the given class namesPathBasicPath. withGlobalIndex(Integer n)An alias of:occurrenceNumber(n + 1).of(this)PathPath. withGlobalIndex(Integer index)Return the nth occurrence of the element in the entire document.PathBasicPath. withText(String txt)Element with text equals (ignoring case) to txt.PathPath. withText(String txt)Element with text equals (ignoring case) to txt.PathBasicPath. withTextContaining(String txt)Equivalent tothis.that(hasTextContaining(txt)).PathPath. withTextContaining(String txt)The element has text, containing the given txt parameter.Methods in com.github.loyada.jdollarx that return types with arguments of type Path Modifier and Type Method Description List<Path>Images.Obscure. getObscuredElements()Methods in com.github.loyada.jdollarx with parameters of type Path Modifier and Type Method Description PathBasicPath. after(Path path)The element appears after the given pathPathPath. after(Path path)The element appears after the given pathPathBasicPath. afterSibling(Path path)The element has a preceding sibling that matches to the given Path parameterPathPath. afterSibling(Path path)The element is a sibling of the given path, and appears after itPathBasicPath. ancestorOf(Path path)PathPath. ancestorOf(Path path)The element contains the given path, i.e.static PathPathShortNames. ancestorOf(Path el)static voidImages. assertCanvasImageIsEqualToExpected(InBrowser browser, Path el, InputStream expectedImageInput)Verify that the element's image is pixel-perfectstatic voidImages. assertHTMLImgSoureIsEqualToExpected(InBrowser browser, Path el, InputStream expectedImageInput)Verify that an image downloaded from an HTML img src attribute, is pixel-perfectstatic voidImages. assertImageIsEqualToExpected(InBrowser browser, Path el, InputStream expectedImageInput)Verify that the element's image is pixel-perfectstatic voidImages. assertImageIsEqualToExpectedWithShiftAndCrop(InBrowser browser, Path el, InputStream expectedImageInput, int maxShift)Verify that the element's image is pixel-perfect, but allowing some crop/shiftstatic voidImages. assertImageIsSimilarToExpected(InBrowser browser, Path el, InputStream expectedImageInput, int maxBadPixelsRatio)Verify the picture is "similar" to the reference image.PathBasicPath. before(Path path)The element is before the given path parameterPathPath. before(Path path)The element appears before the given pathPathBasicPath. beforeSibling(Path path)The element is a sibling of the given path and appears before itPathPath. beforeSibling(Path path)The element is a sibling of the given path, and appears before itstatic BufferedImageImages. captureCanvas(InBrowser browser, Path canvas)static voidImages. captureCanvasToFile(InBrowser browser, Path el, File outputFile)Save an HTML5 canvas to file.static voidImages. captureImgSrcToFile(InBrowser browser, Path imgEl, File outputFile)Save the source of an HTML img element to filestatic voidImages. captureToFile(InBrowser browser, Path el, File outputFile)Save image to filePathBasicPath. childOf(Path path)PathPath. childOf(Path path)The element is a direct child of the given pathstatic PathPathShortNames. childOf(Path el)org.openqa.selenium.WebElementInBrowser. clickAt(Path el)Click at the location the first element that fits the given path.org.openqa.selenium.WebElementInBrowser. clickOn(Path el)Click on the first element that fits the given path.PathBasicPath. containing(Path path)PathPath. containing(Path path)The element contains the given path, i.e.PathBasicPath. contains(Path path)static ElementPropertyElementProperties. contains(Path... paths)The given elements in the parameters list are contained in the current elementPathPath. contains(Path path)The element contains the given path, i.e.org.openqa.selenium.WebElementInBrowser. contextClick(Path el)Context-click (right click) at the location the first element that fits the given path.intInBrowser. countAll(Path el)Count number of elements that are currently present.static intInBrowserFinder. countAll(org.openqa.selenium.WebDriver driver, Path el)PathBasicPath. descendantOf(Path path)The element is inside the given path parameterPathPath. descendantOf(Path path)The element is contained in the given path element, i.e.static PathPathShortNames. descendentOf(Path el)voidInBrowser. doubleClickOn(Path el)Doubleclick the location of the first element that fits the given path.org.openqa.selenium.WebElementOperations.ScrollElement. downUntilElementIsPresent(Path expectedElement)Scroll down until the DOM contains the expected element.org.openqa.selenium.WebElementOperations.ScrollElement. downUntilElementIsPresent(Path expectedElement, int scrollStep, int maxNumberOfScrolls)Scroll down until the DOM contains the expected element.org.openqa.selenium.WebElementOperations.ScrollElement. downUntilPredicate(Path expectedElement, int scrollStep, int maxNumberOfScrolls, Predicate<org.openqa.selenium.WebElement> predicate)Scroll down until the DOM contains the expected element, and the supplied condition for that element is met.org.openqa.selenium.WebElementOperations.ScrollElement. downUntilPredicate(Path expectedElement, Predicate<org.openqa.selenium.WebElement> predicate)Scroll down until the DOM contains the expected element, and the given condition for that element is met.Operations.DragAndDropInBrowser. dragAndDrop(Path path)Drag and drop in the browser.org.openqa.selenium.WebElementInBrowser. find(Path el)Finds an element in the browser, based on the xpath representing el.List<org.openqa.selenium.WebElement>InBrowser. findAll(Path el)Finds all elements in the browser, based on the xpath representing el.static List<org.openqa.selenium.WebElement>InBrowserFinder. findAll(org.openqa.selenium.WebDriver driver, Path el)static NodeListPathParsers. findAllByPath(String docString, Path path)find all the nodes that match a path in a W3C documentstatic NodeListPathParsers. findAllByPath(Document doc, Path path)find all the nodes that match a path in a W3C documentorg.openqa.selenium.WebElementInBrowser. findPageWithNumberOfOccurrences(Path el, int numberOfOccurrences, RelationOperator relationOperator)Don't use this directly.static org.openqa.selenium.WebElementInBrowserFinder. findPageWithNumberOfOccurrences(org.openqa.selenium.WebDriver driver, Path el, int numberOfOccurrences)static org.openqa.selenium.WebElementInBrowserFinder. findPageWithNumberOfOccurrences(org.openqa.selenium.WebDriver driver, Path el, int numberOfOccurrences, RelationOperator relationOperator)org.openqa.selenium.WebElementInBrowser. findPageWithout(Path el)Finds an page in the browser, that does not contain the given pathstatic PathBasicPath. firstOccurrenceOf(Path path)First global occurrence of an element in the document.List<?>InBrowser. getAttributeOfAll(Path el, String attribute)Get a specific attribute of all the elements matching the given path.static List<?>InBrowserFinder. getAttributeOfAll(org.openqa.selenium.WebDriver driver, Path el, String attribute)Extract an attribute from all elements that match the given element.List<String>InBrowser. getCssClasses(Path el)Get all classes of given Path element.static Optional<BufferedImage>Images. getErrorsImage(InBrowser browser, Path el, InputStream expectedImageInput)create and return an image that highlights the different pixels between the captured image and the reference imageorg.openqa.selenium.support.ui.SelectInBrowser. getSelect(Path el)Get a Selenium select element, which provides a high level API to interacting with a "select" menu.static ElementPropertyElementProperties. hasAncesctor(Path path)Element is inside the given parameterstatic ElementPropertyElementProperties. hasChild(Path... paths)Element is the parent of the given list of elementsstatic ElementPropertyElementProperties. hasDescendant(Path... paths)The given elements in the parameters list are contained in the current elementstatic ElementPropertyElementProperties. hasParent(Path path)Element is direct child of the element matched by the given parameterorg.openqa.selenium.WebElementInBrowser. hoverOver(Path el)Hover over the location of the first element that fits the given pathPathBasicPath. immediatelyAfterSibling(Path path)The sibling right before the current element matches to the given Path parameterPathPath. immediatelyAfterSibling(Path path)The sibling right before the element matches the given path parameterPathBasicPath. immediatelyBeforeSibling(Path path)The sibling right after the element matches the given path parameterPathPath. immediatelyBeforeSibling(Path path)The sibling right after the element matches the given path parameterPathBasicPath. inside(Path path)Element that is inside another elementPathPath. inside(Path path)Element that is inside another elementstatic ElementPropertyElementProperties. isAfter(Path... paths)Element appears after all the given parameters in the documentstatic ElementPropertyElementProperties. isAfterSibling(Path... paths)Element is a sibling of all the elements defined by the given paths, AND is after all those siblingsstatic ElementPropertyElementProperties. isAncestorOf(Path... paths)The given elements in the parameters list are contained in the current elementstatic ElementPropertyElementProperties. isBefore(Path... paths)Element is before all the elements given in the parametersstatic ElementPropertyElementProperties. isBeforeSibling(Path... paths)Element is a sibling of all the elements defined by the given paths, AND is before all those siblingsstatic ElementPropertyElementProperties. isChildOf(Path path)Element is direct child of the element matched by the given parameterstatic ElementPropertyElementProperties. isContainedIn(Path path)booleanInBrowser. isCovered(Path el)Assuming the element exists, check if it is covered by another elementstatic ElementPropertyElementProperties. isDescendantOf(Path path)Element is inside the given parameterbooleanInBrowser. isDisplayed(Path el)is the element present and displayed? Typically you should not use this method directly.booleanInBrowser. isEnabled(Path el)is the element present and enabled? Typically you should not use this method directly.static ElementPropertyElementProperties. isInside(Path path)Element is inside the given parameterbooleanInBrowser. isNotPresent(Path el)is the element present? Typically you should not use this method directly.static ElementPropertyElementProperties. isParentOf(Path... paths)Element is the parent of the given list of elementsbooleanInBrowser. isPresent(Path el)is the element present? Typically you should not use this method directly.booleanInBrowser. isSelected(Path el)is the element present and selected? Typically you should not use this method directly.static ElementPropertyElementProperties. isSiblingOf(Path... paths)Element is a sibling of all the elements defined by the given pathsstatic PathBasicPath. lastOccurrenceOf(Path path)Last global occurrence of an element in the documentorg.openqa.selenium.WebElementOperations.ScrollElement. leftUntilElementIsDisplayed(Path expectedElement)Scroll left until the DOM contains the expected element, and it's displayed.org.openqa.selenium.WebElementOperations.ScrollElement. leftUntilElementIsPresent(Path expectedElement)Scroll left until the DOM contains the expected element.org.openqa.selenium.WebElementOperations.ScrollElement. leftUntilElementIsPresent(Path expectedElement, int scrollStep, int maxNumberOfScrolls)Scroll left until the DOM contains the expected element.org.openqa.selenium.WebElementOperations.ScrollElement. leftUntilPredicate(Path expectedElement, int scrollStep, int maxNumberOfScrolls, Predicate<org.openqa.selenium.WebElement> predicate)Scroll left until the DOM contains the expected element and the supplied predicate for the element is met.org.openqa.selenium.WebElementOperations.ScrollElement. leftUntilPredicate(Path expectedElement, Predicate<org.openqa.selenium.WebElement> predicate)Scroll left until the DOM contains the expected element, and the given predicate regarding that element is met.static PathPathOperators. not(Path path)Any element that does NOT conform to the definition of the given path parametersIntegerInBrowser. numberOfAppearances(Path el)Returns the number of elements in the browser that match the given path.NPathNPath.NPathBuilder. occurrencesOf(Path path)PathBasicPath.GlobalOccurrenceNumber. of(Path path)return the nth global occurrence (in the entire document) of the given path.PathBasicPath.ChildNumber. ofType(Path path)an element that has n similar preceding siblings.voidOperations.KeysDown. on(Path path)Send key-down to an element in the browserPathBasicPath. or(Path path)match more than a single path.PathPath. or(Path path)match more than a single path.PathBasicPath. parentOf(Path path)PathPath. parentOf(Path path)The element is a parent of the given pathstatic PathPathShortNames. parentOf(Path el)org.openqa.selenium.WebElementInBrowser. rightClick(Path el)Context-click (right click) at the location the first element that fits the given path.org.openqa.selenium.WebElementOperations.ScrollElement. rightUntilElementIsPresent(Path expectedElement)Scroll right until the virtualized DOM contains the expect element.org.openqa.selenium.WebElementOperations.ScrollElement. rightUntilElementIsPresent(Path expectedElement, int scrollStep, int maxNumberOfScrolls)Scroll right until the virtualized DOM contains the expect element.org.openqa.selenium.WebElementOperations.ScrollElement. rightUntilElementIsVisible(Path expectedElement)Scroll right until the virtualized DOM contains the expect element, and it is visible Using 40 pixels steps, until the end of the tableorg.openqa.selenium.WebElementOperations.ScrollElement. rightUntilPredicate(Path expectedElement, int scrollStep, int maxNumberOfScrolls, Predicate<org.openqa.selenium.WebElement> predicate)Scroll right until the DOM contains the expected element and the supplied predicate for the element is met.org.openqa.selenium.WebElementOperations.ScrollElement. rightUntilPredicate(Path expectedElement, Predicate<org.openqa.selenium.WebElement> predicate)Scroll right until the DOM contains the expected element, and the given predicate regarding that element is met.Operations.ScrollElementInBrowser. scrollElement(Path wrapper)Operations.ScrollElementInBrowser. scrollElementWithStepOverride(Path wrapper, int step)org.openqa.selenium.WebElementInBrowser. scrollTo(Path el)Scroll to the location of the first element that fits the given pathstatic voidImages. show(InBrowser browser, Path el)Display image of an element in a separate window.static voidImages. showCanvas(InBrowser browser, Path el)Display image of an HTML5 canvas element in a separate window.static PathPathShortNames. siblingOf(Path el)voidOperations.DragAndDrop. to(Path target)drag and drop to the given element's locationvoidOperations.KeysSender. to(Path path)Send keys to a specific element in the browservoidOperations.Scroll. to(Path path)Scroll until the location of an elementorg.openqa.selenium.WebElementOperations.ScrollElement. toTopLeftCorner(Path expectedElement)Scroll down until the DOM contains the expected element.org.openqa.selenium.WebElementOperations.ScrollElement. upUntilElementIsPresent(Path expectedElement)Scroll up until the virtualized DOM contains the expect element.org.openqa.selenium.WebElementOperations.ScrollElement. upUntilElementIsPresent(Path expectedElement, int scrollStep, int maxNumberOfScrolls)Scroll up until the virtualized DOM contains the expect element.org.openqa.selenium.WebElementOperations.ScrollElement. upUntilPredicate(Path expectedElement, int scrollStep, int maxNumberOfScrolls, Predicate<org.openqa.selenium.WebElement> predicate)Scroll up until the DOM contains the expected element, and the supplied condition for that element is met.org.openqa.selenium.WebElementOperations.ScrollElement. upUntilPredicate(Path expectedElement, Predicate<org.openqa.selenium.WebElement> predicate)Scroll up until the DOM contains the expected element, and the given condition for that element is met.Constructors in com.github.loyada.jdollarx with parameters of type Path Constructor Description DragAndDrop(org.openqa.selenium.WebDriver driver, Path path)NPath(Path path, int n, RelationOperator qualifier)Obscure(InBrowser browser, Path element)ScrollElement(org.openqa.selenium.WebDriver driver, Path wrapper)ScrollElement(org.openqa.selenium.WebDriver driver, Path wrapper, int stepSizeOverride)Constructor parameters in com.github.loyada.jdollarx with type arguments of type Path Constructor Description Obscure(InBrowser browser, List<Path> elements)Obscure(InBrowser browser, List<Path> elements, boolean strict) -
Uses of Path in com.github.loyada.jdollarx.custommatchers
Methods in com.github.loyada.jdollarx.custommatchers that return types with arguments of type Path Modifier and Type Method Description org.hamcrest.Matcher<Path>HasText. in(InBrowser browser)org.hamcrest.Matcher<Path>HasText. in(Document document)org.hamcrest.Matcher<Path>IsPresent. in(InBrowser browser)org.hamcrest.Matcher<Path>IsPresent. in(Document document)static org.hamcrest.Matcher<Path>CustomMatchers. isAbsentFrom(InBrowser browser)Successful if given browser has no elements that correspond to the given path.static org.hamcrest.Matcher<Path>CustomMatchers. isAbsentFrom(Document document)Successful if given document has no elements that correspond to the given path.static org.hamcrest.Matcher<Path>CustomMatchers. isDisplayedIn(InBrowser browser)Successful if given element is present and displayed in the browser.static org.hamcrest.Matcher<Path>CustomMatchers. isEnabledIn(InBrowser browser)Successful if given element is present and enabled in the browser.static org.hamcrest.Matcher<Path>CustomMatchers. isNotDisplayedIn(InBrowser browser)Successful if given element is either not present, or present and not displayed in the browser.static org.hamcrest.Matcher<Path>CustomMatchers. isPresentIn(InBrowser browser)Successful if given element is present in the browser.static org.hamcrest.Matcher<Path>CustomMatchers. isPresentIn(Document document)Successful if given element is present in the document.static org.hamcrest.Matcher<Path>CustomMatchers. isSelectedIn(InBrowser browser)Successful if given element is present and selected in the browser.org.hamcrest.Matcher<Path>IsPresentNTimes. timesIn(InBrowser browser)org.hamcrest.Matcher<Path>IsPresentNTimes. timesIn(Document doc)org.hamcrest.Matcher<Path>IsPresentNTimes. timesOrLessIn(InBrowser browser)org.hamcrest.Matcher<Path>IsPresentNTimes. timesOrLessIn(Document doc)org.hamcrest.Matcher<Path>IsPresentNTimes. timesOrMoreIn(InBrowser browser)org.hamcrest.Matcher<Path>IsPresentNTimes. timesOrMoreIn(Document doc)Methods in com.github.loyada.jdollarx.custommatchers with parameters of type Path Modifier and Type Method Description static org.hamcrest.Matcher<InBrowser>CustomMatchers. hasElement(Path el)Successful if the browser has an element that corresponds to the given path.static HasElementsCustomMatchers. hasElements(Path path)Successful if element is present in the browser or a W3C document.static org.hamcrest.Matcher<InBrowser>CustomMatchers. hasNoElement(Path el)Successful if given browser has no elements that correspond to the given path.static StringCustomMatchersUtil. wrap(Path el)Constructors in com.github.loyada.jdollarx.custommatchers with parameters of type Path Constructor Description HasElementNTimes(Path path, int nTimes)HasElements(Path path) -
Uses of Path in com.github.loyada.jdollarx.highlevelapi
Methods in com.github.loyada.jdollarx.highlevelapi that return Path Modifier and Type Method Description static PathInputs. checkboxType(Path inp)Takes an input element and returns such an input of type checkbox.static PathInputs. genericFormInputAfterField(String fieldName)A generic, reasonable guess of an input field in a form.static PathInputs. genericFormInputBeforeField(String fieldName)A generic, reasonable guess of an input field in a form.PathCheckBox. getCheckbox()static PathInputs. inputFollowedByUnlabeledText(String text)Input followed by text that does not have its on label element.static PathInputs. inputForLabel(InBrowser browser, String labelText)A lazy way to find an input based on the label.static PathInputs. radioType(Path inp)Takes an input element and returns such an input of type radio.static PathInputs. selectInFieldWithLabel(InBrowser browser, String labelText, String option)Perform a selection of an option in a select element.Methods in com.github.loyada.jdollarx.highlevelapi with parameters of type Path Modifier and Type Method Description static voidInputs. changeInputValue(InBrowser browser, Path field, String text)Change input value: clear it and then enter another text in itstatic voidInputs. changeInputValueNonStrictClearing(InBrowser browser, Path field, String text)Change input value: clear it and then enter another text in it.static voidInputs. changeInputValueWithEnter(InBrowser browser, Path field, String text)Similar to changeInputValue, but adds an ENTER after setting the value of the inputstatic voidInputs. changeInputValueWithEnterNonStrictClearing(InBrowser browser, Path field, String text)Similar to changeInputValueNonStrictClearing, but adds an ENTER after setting the value of the inputstatic PathInputs. checkboxType(Path inp)Takes an input element and returns such an input of type checkbox.static voidInputs. clearInput(InBrowser browser, Path field)Clear operation on an input element.static voidInputs. clearInputNonStrict(InBrowser browser, Path field)Clear operation on an input element, but does not enforces a complete clear.static PathInputs. radioType(Path inp)Takes an input element and returns such an input of type radio.static voidInputs. selectDropdownOption(InBrowser browser, Path dropdownContent, Path myOption)Constructors in com.github.loyada.jdollarx.highlevelapi with parameters of type Path Constructor Description CheckBox(InBrowser browser, Path inputEl, String name)input of type "checkbox"RadioInput(InBrowser browser, Path thePath)a radio button input with the given path. -
Uses of Path in com.github.loyada.jdollarx.singlebrowser
Classes in com.github.loyada.jdollarx.singlebrowser that implement Path Modifier and Type Class Description classSingleBrowserPathAn implementation ofPaththat is tailored to a singleton browser, thus allows some additional API's for actions (for those who favor object-oriented API style)Fields in com.github.loyada.jdollarx.singlebrowser declared as Path Modifier and Type Field Description static PathAgGrid. AgBodystatic PathAgGrid. AgGridRootstatic PathAgGrid. AgListstatic PathAgGrid. AgListOptionstatic PathAgGrid. CELLstatic PathAgGrid. CHECKBOXstatic PathAgGrid. HEADER_CELLstatic PathAgGrid. HEADER_MENUstatic PathAgGrid. HEADER_TXTstatic PathAgGrid. ROWMethods in com.github.loyada.jdollarx.singlebrowser that return Path Modifier and Type Method Description PathSingleBrowserPath. after(Path another)PathSingleBrowserPath. afterSibling(Path another)PathSingleBrowserPath. ancestorOf(Path another)PathSingleBrowserPath. and(ElementProperty... prop)PathSingleBrowserPath. before(Path another)PathSingleBrowserPath. beforeSibling(Path another)PathAgGridHighLevelOperations. cellInGrid(int rowNumber, String columnName)Ensure a specific cell is visible and return a Path to itPathSingleBrowserPath. childOf(Path another)PathAgGridHighLevelOperations. clickOnColumnWithValue(String columnName, String value)Find a the first cell in the given column with the given value, ensure it is visible, and click on it.PathAgGridHighLevelOperations. clickOnTextInsideColumnWithValue(String columnName, String value)Find a the first cell in the given column with the given value, ensure it is visible, and click on the text inside it.PathSingleBrowserPath. containing(Path another)PathSingleBrowserPath. contains(Path another)PathSingleBrowserPath. descendantOf(Path another)PathSingleBrowserPath. describedBy(String description)PathAgGrid. ensureVisibilityOfCellInColumn(String columnTitle, ElementProperty cellContent)Find a specific cell under a column, without knowing the row, ensure it is displayed, and return its PathPathAgGrid. ensureVisibilityOfCellInColumnInVisibleRow(Path row, String columnTitle)Find a specific cell under a column, when row is already known and displayed, ensure it is displayed, and return its PathPathAgGrid. ensureVisibilityOfCellInColumnInVisibleRowById(Path row, String columnId)Find a specific cell under a column, when row is already known and displayed, ensure it is displayed, and return its PathPathAgGrid. ensureVisibilityOfRowWithIndex(int n)Scroll until the row with the given index is visible, and return a Path element that matches it.PathAgGrid. ensureVisibilityOfRowWithIndexAndColumn(int index, String columnTitle)Scroll until the row with the given index, as well as the given column, is visible.PathAgGridHighLevelOperations. getCellInRowWithColumnAndValue(String wantedColumn, String column, String value)First find a row that has the given value in the column, then find the column "wantedColumn" in the same row, ensure it is visible, and return the Path to it.PathAgGridHighLevelOperations. getCellInRowWithColumnAndValueById(String wantedColumnId, String column, String value)First find a row that has the given value in the column, then find the column with the ID wantedColumnId in the same row, ensure it is visible, and return the Path to it.PathAgGridHighLevelOperations. getRowOfDisplayedCell(Path cell)return a path to the Row of a cell, assuming the cell is displayed.PathAgGridHighLevelOperations. getRowWithColumnAndValue(String column, String value)PathAgGrid. getVisibleHeaderPath(String headerText)Make sure the given column header is visible, and returns a Path element to access it.PathAgGridHighLevelOperations. goToEditModeInCell(String columnName, int rowNumber)Find a cell, and doubleclick itPathAgGridHighLevelOperations. goToEditModeInCell(String columnName, String value)Find a cell, and doubleclick itPathAgGridHighLevelOperations. hoverOverCell(int rowNumber, String columnTitle)Hover over speicic cell, after ensuring it is visiblePathSingleBrowserPath. immediatelyAfterSibling(Path another)PathSingleBrowserPath. immediatelyBeforeSibling(Path another)static PathHighLevelPaths. inputFor(String labelText)PathSingleBrowserPath. inside(Path another)PathSingleBrowserPath. insideTopLevel()PathAgGrid. openColumnFilterTabAndGetMenu(String headerText)open the popup filter for the columnPathAgGrid. openColumnMenuTabAndGetMenu(String headerText)open the popup menu for the columnPathAgGrid. openColumnsSelectionMenuAndGetMenu()open the popup columns show/hide selection by using a popup of the first column (assumes it is active)PathAgGrid. openColumnsSelectionMenuAndGetMenu(String headerText)open the popup columns show/hide selection by using a popup of the given columnPathSingleBrowserPath. or(Path another)PathSingleBrowserPath. parentOf(Path another)PathAgGrid. row()static PathAgGrid. rowOfGrid(Path gridContainer)PathSingleBrowserPath. that(ElementProperty... prop)PathSingleBrowserPath. withClass(String cssClass)PathSingleBrowserPath. withClasses(String... cssClasses)PathSingleBrowserPath. withGlobalIndex(Integer index)PathSingleBrowserPath. withText(String txt)PathSingleBrowserPath. withTextContaining(String txt)Methods in com.github.loyada.jdollarx.singlebrowser with parameters of type Path Modifier and Type Method Description PathSingleBrowserPath. after(Path another)PathSingleBrowserPath. afterSibling(Path another)PathSingleBrowserPath. ancestorOf(Path another)PathSingleBrowserPath. before(Path another)PathSingleBrowserPath. beforeSibling(Path another)PathSingleBrowserPath. childOf(Path another)static org.openqa.selenium.WebElementInBrowserSinglton. clickAt(Path el)Click on the location of the element that corresponds to the given path.static org.openqa.selenium.WebElementInBrowserSinglton. clickOn(Path el)Click on the element that corresponds to the given path.AgGrid.AgGridBuilderAgGrid.AgGridBuilder. containedIn(Path container)optional - define the container of the gridPathSingleBrowserPath. containing(Path another)PathSingleBrowserPath. contains(Path another)static org.openqa.selenium.WebElementInBrowserSinglton. contextClick(Path el)Context click (right click) on the location of the element that corresponds to the given path.static intInBrowserSinglton. countAll(Path el)Count number of elements that are currently present.PathSingleBrowserPath. descendantOf(Path another)static voidInBrowserSinglton. doubleClickOn(Path el)Doubleclick on the element that corresponds to the given path.static Operations.DragAndDropInBrowserSinglton. dragAndDrop(Path path)Drag and drop in the browser.PathAgGrid. ensureVisibilityOfCellInColumnInVisibleRow(Path row, String columnTitle)Find a specific cell under a column, when row is already known and displayed, ensure it is displayed, and return its PathPathAgGrid. ensureVisibilityOfCellInColumnInVisibleRowById(Path row, String columnId)Find a specific cell under a column, when row is already known and displayed, ensure it is displayed, and return its Pathstatic org.openqa.selenium.WebElementInBrowserSinglton. find(Path el)Equivalent to WebDriver.findElement().static List<org.openqa.selenium.WebElement>InBrowserSinglton. findAll(Path el)Equivalent to WebDriver.findElements().static <T> List<T>InBrowserSinglton. getAttributeOfAll(Path el, String attribute)Get a specific attribute of all the elements matching the given path.static List<String>InBrowserSinglton. getCssClasses(Path el)Get all classes of given Path element.static intAgGrid. getRowIndex(Path row)assuming the row is already present in the DOM, get its internal index in the table.intAgGrid. getRowIndexOfCell(Path cell)assuming the row is already present in the DOM, get its internal index in the table.PathAgGridHighLevelOperations. getRowOfDisplayedCell(Path cell)return a path to the Row of a cell, assuming the cell is displayed.static org.openqa.selenium.support.ui.SelectInBrowserSinglton. getSelect(Path el)Get a Selenium select element, which provides a high level API to interacting with a "select" menu.static org.openqa.selenium.WebElementInBrowserSinglton. hoverOver(Path el)Hover over on the location of the element that corresponds to the given path.PathSingleBrowserPath. immediatelyAfterSibling(Path another)PathSingleBrowserPath. immediatelyBeforeSibling(Path another)PathSingleBrowserPath. inside(Path another)static booleanInBrowserSinglton. isCovered(Path el)Assuming the element exists, check if it is covered by another elementstatic booleanInBrowserSinglton. isDisplayed(Path el)Relies on Selenium WebElement::isDisplayed, thus non-atomic.static booleanInBrowserSinglton. isEnabled(Path el)Relies on Selenium WebElement::isEnabled, thus non-atomic.static booleanInBrowserSinglton. isPresent(Path el)static booleanInBrowserSinglton. isSelected(Path el)Relies on Selenium WebElement::isSelected, thus non-atomic.static IntegerInBrowserSinglton. numberOfAppearances(Path el)Typically should not be used directly.PathSingleBrowserPath. or(Path another)PathSingleBrowserPath. parentOf(Path another)static org.openqa.selenium.WebElementInBrowserSinglton. rightClick(Path el)Context click (right click) on the location of the element that corresponds to the given path.static PathAgGrid. rowOfGrid(Path gridContainer)static Operations.ScrollElementInBrowserSinglton. scrollElement(Path el)scroll within the given element.static Operations.ScrollElementInBrowserSinglton. scrollElementWithStepOverride(Path el, int step)scroll within the given element.static org.openqa.selenium.WebElementInBrowserSinglton. scrollTo(Path el)scroll to the location of the element that corresponds to the given path.static intInBrowserSinglton. waitUntilStable(Path el, int waitBetweenChecksInMillis)Constructors in com.github.loyada.jdollarx.singlebrowser with parameters of type Path Constructor Description AgGridHighLevelOperations(Path gridContainer)Obscure(Path element)Make the first element matching the given path temporarily hidden.SingltonBrowserImage(Path el)Constructor parameters in com.github.loyada.jdollarx.singlebrowser with type arguments of type Path Constructor Description Obscure(List<Path> elements)Make the elements matching the given paths temporarily hidden.Obscure(List<Path> elements, boolean strict)Make the elements matching the given paths temporarily hidden. -
Uses of Path in com.github.loyada.jdollarx.singlebrowser.custommatchers
Methods in com.github.loyada.jdollarx.singlebrowser.custommatchers that return types with arguments of type Path Modifier and Type Method Description static org.hamcrest.Matcher<Path>CustomMatchers. hasText(String text)Successful if element has the text equal to the given parameter in the browser/document.static org.hamcrest.Matcher<Path>CustomMatchers. isAbsent()Successful if the browser has no elements that correspond to the given path.static org.hamcrest.Matcher<Path>CustomMatchers. isDisplayed()Successful if given element is present and displayed in the browser.static org.hamcrest.Matcher<Path>CustomMatchers. isEnabled()Successful if given element is present and enabled in the browser.static org.hamcrest.Matcher<Path>CustomMatchers. isNotDisplayed()Successful if given element is either not present, or present and not displayed in the browser.static org.hamcrest.Matcher<Path>CustomMatchers. isNotSelected()Successful if given element is present and is not selected in the browser.static org.hamcrest.Matcher<Path>CustomMatchers. isPresent()Successful if the the element is present in the browser.static org.hamcrest.Matcher<Path>CustomMatchers. isSelected()Successful if given element is present and selected in the browser.org.hamcrest.Matcher<Path>IsPresentNTimes. times()org.hamcrest.Matcher<Path>IsPresentNTimes. timesOrLess()org.hamcrest.Matcher<Path>IsPresentNTimes. timesOrMore() -
Uses of Path in com.github.loyada.jdollarx.singlebrowser.highlevelapi
Methods in com.github.loyada.jdollarx.singlebrowser.highlevelapi that return Path Modifier and Type Method Description static PathInputs. genericFormInputAfterField(String fieldName)A generic, reasonable guess of an input field in a form.static PathInputs. genericFormInputBeforeField(String fieldName)A generic, reasonable guess of an input field in a form.static PathInputs. inputFollowedByUnlabeledText(String text)Input followed by text that does not have its on label element.static PathInputs. inputForLabel(String labelText)A lazy way to find an input based on the label.Methods in com.github.loyada.jdollarx.singlebrowser.highlevelapi with parameters of type Path Modifier and Type Method Description static voidInputs. changeInputValue(Path field, String text)Change input value: clear it and then enter another text in itstatic voidInputs. changeInputValueNonStrictClearing(Path field, String text)Change input value: try to clear as much as it can, and then enter another text in itstatic voidInputs. changeInputValueWithEnter(Path field, String text)Similar to changeInputValue, but adds an ENTER after setting the value of the inputstatic CheckBoxCheckBoxes. checkboxForInput(Path inputEl, String name)input of type "checkbox" for a specific input elementstatic voidInputs. clearInput(Path field)Clear operation on an input elementstatic voidInputs. selectDropdownOption(Path dropdownContent, Path myOption) -
Uses of Path in com.github.loyada.jdollarx.singlebrowser.sizing
Methods in com.github.loyada.jdollarx.singlebrowser.sizing with parameters of type Path Modifier and Type Method Description static LongElementResizer. getVisibleWidth(Path el)get visible width of the elementConstructors in com.github.loyada.jdollarx.singlebrowser.sizing with parameters of type Path Constructor Description ElementResizer(Path path, int expectedWidth, int expectedHeight)Resize an element in the browser -
Uses of Path in com.github.loyada.jdollarx.utils
Methods in com.github.loyada.jdollarx.utils that return Path Modifier and Type Method Description static PathPathShortNames. ancestorOf(Path path)Aliasstatic PathPathShortNames. childOf(Path path)Aliasstatic PathPathShortNames. parentOf(Path path)Aliasstatic PathPathShortNames. siblingOf(Path path)AliasMethods in com.github.loyada.jdollarx.utils with parameters of type Path Modifier and Type Method Description static PathPathShortNames. ancestorOf(Path path)Aliasstatic PathPathShortNames. childOf(Path path)Aliasstatic Optional<org.jsoup.nodes.Element>DebugUtil. getDOM(Path el)Same asDebugUtil.getDOMOfAll(Path), but returns an optional of the first match.static List<org.jsoup.nodes.Element>DebugUtil. getDOMOfAll(Path el)Get all matches of the path as a list ofElement.static voidDebugUtil. highlight(Path el)Highlight the first element that match the path in the browser, for 2 seconds.static voidDebugUtil. highlightAll(Path el)Highlight all the elements that match the path in the browser, for 2 seconds.static PathPathShortNames. parentOf(Path path)Aliasstatic PathPathShortNames. siblingOf(Path path)Alias
-