The Link class provides a clean interface for interacting with generic container elements such as <link> blocks. It includes methods for selection, assertions, and scrolling into view.
Usage : link
🧩 Code
The Link class is designed to interact with common link element
doubleClick(forceClick:boolean): void
Double-clicks the link
@param forceClick {boolean} the value to match.(Optional)
@returnsvoid
rightClick(forceClick:boolean): void
Right-clicks the link.
@param forceClick {boolean} the value to match.(Optional)
@returnsvoid
clickLinkAtCoordinates(x: number, y: number, forceClick:boolean): void
Clicks the link at the specified coordinates.
@param x - The x-coordinate.
@param y - The y-coordinate.
@returnsvoid
centerClick(forceClick:boolean): void
Clicks the link at its center.
@returnsvoid
clickFirst(forceClick:boolean): void
Clicks the first link.
@returnsvoid
clickLast(forceClick:boolean): void
Clicks the last link.
@returnsvoid
getLinkHref(): void
Gets the href attribute of the link.
@returnspromise
Assertions
isVisible(): boolean
Asserts that the link is visible.
@returnsboolean
isHidden(): boolean
Asserts that the link is hidden
@returnsboolean
assertLinkHrefContains(text: string): void
Asserts that the href attribute of the link contains the specified text.
@param text - the text to check for in the href attribute.
@returnsvoid
assertLinkHrefEquals(href: string): void
Asserts that the href attribute of the link equals the specified href.
@param href - the href to compare with the link’s href attribute
@returnsvoid
assertLinkText(text: string): void
Asserts that the text of the link equals the specified text.
@param text - the text to compare with the link’s text.
@returnsvoid
isDisabled(): void
Checks if the element is disabled.
@returnsboolean
isDisplayed(): Promise<boolean>
Checks if the element is displayed
@returnsboolean
isFocused(): Promise<boolean>
Checks if the element is focused
@returnsboolean
isHidden():Promise<boolean>
Asserts that the link is hidden.
@returnsvoid
isEnabled(): Promise<boolean>
Checks if the element is enabled
@returnsboolean
Scrolling Actions
scrollToElement(): void
Scrolls to the link element.
@returnsvoid
Custom Events
Ordino allows you to build custom actions or user journeys by directly interacting with the underlying tool’s native methods and actions.
This approach gives you full control, bypassing Ordino’s abstraction layer, and ensures you can leverage tool-specific capabilities as needed.
locator → The element locator (e.g., XPath, CSS selector, or tool-specific reference).
Returns → A tool element object on which you can invoke native actions (e.g., .click(), .type()).
Ordino Custom Mode
Using Ordino’s direct tool method reference:
Here, Ordino will call the Cypress (or other tool) element object directly, rather than going through Ordino’s wrapper.
Building User Journeys
By chaining multiple oi.ui.element() calls, you can construct full user journeys while still working with native tool methods.
Example: Login Flow
Key Notes
Use this mode when you need maximum control over the test framework.
This does not abstract or transform the call – it executes directly on the tool object (e.g., Cypress, Playwright, etc.).
Perfect for custom journeys, advanced locators, or tool-specific actions not exposed by Ordino’s higher-level API.