Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AccessorApi

All methods of this interface are injected as global functions into Sakuli Scripts

It is inspired by Sahi Accessor API and aims the most possible compatibility to it.

The main difference is that all the functions returns SahiElementQueries instead of element references. This gives Sakuli the opportunity to fetch an element only when it is required (e.g. inside a _click action) or re-fetch it if becomes gets stale otherwise.

Hierarchy

Index

Methods

_abbr

_activeElement

_area

_article

_aside

_blockquote

_bold

_button

_byClassName

_byId

_byText

_byXPath

_canvas

_cell

_checkbox

_code

_dDesc

_dList

_dTerm

_datebox

_datetimebox

_datetimelocalbox

_details

_div

_emailbox

_embed

_emphasis

_fieldset

_figcaption

_figure

_file

_font

_footer

_frame

_header

_heading1

_heading2

_heading3

_heading4

_heading5

_heading6

_hidden

_hr

_iframe

_image

_imageSubmitButton

_italic

_label

_link

_list

_listItem

_main

_map

_mark

_monthbox

_nav

_numberbox

_object

_option

_paragraph

_password

_preformatted

_radio

  • Fetches a radio field by an identifier - restricted by the relations

    Based on CSS selector: input[type="radio"]

    example

    Assuming the following HTML-snippet:

    <h2>Prefered Drink?</h2>
    <label>
        <span>Water</span>
        <input type="radio" name="drink" value="water" />
    </label>
    <label>
        <span>Wine</span>
        <input type="radio" name="drink" value="wine" />
    </label>
    <label>
        <span>Beer</span>
        <input type="radio" name="drink" value="beer" />
    </label>

    Checking the field with _click:

    await _click(_radio(1)); // Selects 'Wine'

    Parameters

    Returns SahiElementQueryOrWebElement

_rangebox

_reset

_row

_rte

_searchbox

_section

_select

_span

_strong

_submit

_summary

_svg_circle

_svg_ellipse

_svg_line

_svg_path

_svg_polygon

_svg_polyline

_svg_rect

_svg_text

_svg_tspan

_table

_tableHeader

_telephonebox

_textarea

_textbox

_time

_timebox

_urlbox

_video

_weekbox