Uses of Class
com.github.loyada.jdollarx.InBrowser
-
Packages that use InBrowser 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. -
-
Uses of InBrowser in com.github.loyada.jdollarx
Methods in com.github.loyada.jdollarx that return InBrowser Modifier and Type Method Description static InBrowserInBrowser. fromSingleton()Methods in com.github.loyada.jdollarx with parameters of type InBrowser Modifier and Type Method Description 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.static 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 filestatic 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 imagestatic 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.Constructors in com.github.loyada.jdollarx with parameters of type InBrowser Constructor Description Obscure(InBrowser browser, Path element)Obscure(InBrowser browser, List<Path> elements)Obscure(InBrowser browser, List<Path> elements, boolean strict) -
Uses of InBrowser in com.github.loyada.jdollarx.custommatchers
Methods in com.github.loyada.jdollarx.custommatchers that return types with arguments of type InBrowser 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 org.hamcrest.Matcher<InBrowser>CustomMatchers. hasNoElement(Path el)Successful if given browser has no elements that correspond to the given path.org.hamcrest.Matcher<InBrowser>HasElementNTimes. times()matches the exact number givenorg.hamcrest.Matcher<InBrowser>HasElementNTimes. timesOrLess()matches the number given, or lessorg.hamcrest.Matcher<InBrowser>HasElementNTimes. timesOrMore()matches the number given, or moreMethods in com.github.loyada.jdollarx.custommatchers with parameters of type InBrowser Modifier and Type Method Description org.hamcrest.Matcher<Path>HasText. in(InBrowser browser)org.hamcrest.Matcher<Path>IsPresent. in(InBrowser browser)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. 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. 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. timesOrLessIn(InBrowser browser)org.hamcrest.Matcher<Path>IsPresentNTimes. timesOrMoreIn(InBrowser browser)Constructors in com.github.loyada.jdollarx.custommatchers with parameters of type InBrowser Constructor Description NTimesMatcher(int nTimes, RelationOperator relationOperator, InBrowser browser) -
Uses of InBrowser in com.github.loyada.jdollarx.highlevelapi
Methods in com.github.loyada.jdollarx.highlevelapi with parameters of type InBrowser 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 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. inputForLabel(InBrowser browser, String labelText)A lazy way to find an input based on the label.static voidInputs. selectDropdownOption(InBrowser browser, Path dropdownContent, Path myOption)static PathInputs. selectInFieldWithLabel(InBrowser browser, String labelText, String option)Perform a selection of an option in a select element.static RadioInputRadioInput. withLabeledText(InBrowser browser, String labelText)create and return a RadioInput, that has a "label" element with the given text.static RadioInputRadioInput. withTextUnknownDOM(InBrowser browser, String text, int originalImplicitWait, TimeUnit timeUnit)In case the organization of the DOM is unclear, it will try both labeled input and unlabeled input.static RadioInputRadioInput. withUnlabeledText(InBrowser browser, String text)create and return a RadioInput, that has straight text after it (not in a "label" element).Constructors in com.github.loyada.jdollarx.highlevelapi with parameters of type InBrowser Constructor Description CheckBox(InBrowser browser, ElementProperty... props)input of type "checkbox" with the given propertiesCheckBox(InBrowser browser, Path inputEl, String name)input of type "checkbox"CheckBox(InBrowser browser, String labelText)input of type "checkbox" with a label elementRadioInput(InBrowser browser, ElementProperty... props)a radio input with some propertiesRadioInput(InBrowser browser, Path thePath)a radio button input with the given path.
-