A11y
Object Hierarchy:
Description:
public class A11y : Object
Accessibility dump / fill / press for Browser.
Platform tree via using (Atspi / Win32Atspi / AndroidAtspi) — same
shape as A11yParse. Linux offsloads AT-SPI dump/fill/press to a GLib worker (main-
thread AT-SPI deadlocks; set GTK_A11Y=atspi before GTK init). Windows stays on the UI thread (COM). Android yields
AndroidAtspi.refresh_async first so the host walk runs on the Android UI thread without GTK sync-waiting (IME blockForMain
ANR — webkitgtk-android 2026-07-23-a11y-walk-gtk-thread-anr). No page JavaScript.
Example
var a11y = new OLLMwebkit.A11y();
var md = yield a11y.dump(uri, title);
yield a11y.fill(fields);
yield a11y.press(3);
Content:
Properties:
- public Widget host { get; set; }
Host widget whose toplevel is presented before keyboard fill.
- public HashMap<string,ArrayList<int>> html_names { get; }
HTML form name= (or id= when name is missing) → child-
index path from the application root (from the last dump; same path shape as
press_routes values).
- public HashMap<int,string> press_labels { get; }
Press-ref id → a11y label from the last dump (permission questions).
- public HashMap<int,ArrayList<int>> press_routes { get; }
Press-ref id → child-index route from the AT-SPI application root.
Creation methods:
Methods:
- public async string dump (string url, string title) throws Error
Project the page accessibility tree to a11y markdown.
- public async void fill (HashMap<string,string> fields) throws Error
Fill fields by key from the last dump (set_text_contents when
available, else focus + keyboard).
- public async void press (int id) throws Error
Activate a press-ref via the platform Action / Invoke path.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref