Uses of Interface
io.karatelabs.driver.Element
Packages that use Element
-
Uses of Element in io.karatelabs.driver
Classes in io.karatelabs.driver that implement ElementModifier and TypeClassDescriptionclassLocator-based Element implementation that delegates all operations to a Driver.Methods in io.karatelabs.driver that return ElementModifier and TypeMethodDescriptionBaseElement.clear()default ElementClear an input element.Element.clear()BaseElement.click()default ElementClick an element.Element.click()Click the first matching element.The closest ancestor (or self) matching the given CSS selector.Find the first element matching the locator that satisfies the positional constraint.BaseElement.focus()default ElementFocus an element.Element.focus()BaseElement.highlight()default ElementHighlight an element (for debugging).default ElementHighlight an element (for debugging) for a specific duration in millis.Element.highlight()default ElementInput text into an element (focus, clear, type).default ElementInput a sequence of values (strings and/or special keys) into an element.default ElementInput an array of values with a delay between each.default ElementInput characters one-by-one with a delay between each — useful for simulating slow human typing or bypassing race conditions in handlers that debounce keypresses.default ElementFind an element by locator.default ElementFind an element that may not exist (optional).BaseElement.retry()BaseElement.retry(int count) BaseElement.retry(int count, int interval) Element.retry()Element.retry(int count) Element.retry(int count, int interval) BaseElement.scroll()default ElementScroll an element into view.Element.scroll()BaseElement.select(int index) default ElementSelect an option from a dropdown by index.default ElementSelect an option from a dropdown by text or value.Element.select(int index) BaseElement.submit()Element.submit()default ElementSet the value of an input element directly.BaseElement.waitFor()Wait for an element to exist.Wait for an element to exist with custom timeout.Element.waitFor()Driver.waitForAny(String[] locators) Wait for any of the locators to match.Driver.waitForAny(String[] locators, Duration timeout) Wait for any of the locators to match with custom timeout.Driver.waitForAny(String locator1, String locator2) Wait for any of the locators to match.BaseElement.waitForEnabled()Driver.waitForEnabled(String locator) Wait for an element to be enabled.Driver.waitForEnabled(String locator, Duration timeout) Wait for an element to be enabled with custom timeout.Element.waitForEnabled()BaseElement.waitForText(String expected) Driver.waitForText(String locator, String expected) Wait for an element to contain specific text.Driver.waitForText(String locator, String expected, Duration timeout) Wait for an element to contain specific text with custom timeout.Element.waitForText(String expected) Wait until a JavaScript expression on an element evaluates to truthy.Wait until a JavaScript expression on an element evaluates to truthy.Methods in io.karatelabs.driver that return types with arguments of type ElementModifier and TypeMethodDescriptionFind all elements matching the locator that satisfy the positional constraint.Find all elements matching a locator.Find all elements matching a locator and filter via the supplied predicate.Driver.waitForResultCount(String locator, int count) Wait for a specific number of elements to match.Driver.waitForResultCount(String locator, int count, Duration timeout) Wait for a specific number of elements to match with custom timeout.Method parameters in io.karatelabs.driver with type arguments of type Element -
Uses of Element in io.karatelabs.driver.cdp
Methods in io.karatelabs.driver.cdp that return ElementModifier and TypeMethodDescriptionClear an input element.Click an element.Focus an element.Highlight an element.Input text into an element using CDP keypresses.Find an element by locator.Find an element that may not exist (optional).Scroll an element into view.Select an option from a dropdown by index.Select an option from a dropdown by text or value.Set the value of an input element.Wait for an element to exist.Wait for an element to exist with custom timeout.CdpDriver.waitForAny(String[] locators) Wait for any of the locators to match.CdpDriver.waitForAny(String[] locators, Duration timeout) Wait for any of the locators to match with custom timeout.CdpDriver.waitForAny(String locator1, String locator2) Wait for any of the locators to match.CdpDriver.waitForEnabled(String locator) Wait for an element to be enabled.CdpDriver.waitForEnabled(String locator, Duration timeout) Wait for an element to be enabled with custom timeout.CdpDriver.waitForText(String locator, String expected) Wait for an element to contain specific text.CdpDriver.waitForText(String locator, String expected, Duration timeout) Wait for an element to contain specific text with custom timeout.Wait until a JavaScript expression on an element evaluates to truthy.Wait until a JavaScript expression on an element evaluates to truthy.Methods in io.karatelabs.driver.cdp that return types with arguments of type ElementModifier and TypeMethodDescriptionFind all elements matching a locator.CdpDriver.waitForResultCount(String locator, int count) Wait for a specific number of elements to match.CdpDriver.waitForResultCount(String locator, int count, Duration timeout) Wait for a specific number of elements to match with custom timeout. -
Uses of Element in io.karatelabs.driver.w3c
Classes in io.karatelabs.driver.w3c that implement ElementModifier and TypeClassDescriptionclassW3C WebDriver Element implementation that holds a W3C element ID.Methods in io.karatelabs.driver.w3c that return ElementModifier and TypeMethodDescriptionW3cElement.clear()W3cElement.click()W3cDriver.waitForAny(String[] locators) W3cDriver.waitForAny(String[] locators, Duration timeout) W3cDriver.waitForAny(String locator1, String locator2) W3cDriver.waitForEnabled(String locator) W3cDriver.waitForEnabled(String locator, Duration timeout) W3cDriver.waitForText(String locator, String expected) W3cDriver.waitForText(String locator, String expected, Duration timeout) Methods in io.karatelabs.driver.w3c that return types with arguments of type Element