Select a Zone and Vote for a Lighting Option

Site famma-dhaw.comTask vote-on-zoneVersion v1Updated Jul 22, 2026Category interaction

Select a numbered zone on famma-dhaw.com and activate its "pas de lumiere" vote control. This skill was captured from a live agent session on famma-dhaw.com and publishes here verbatim, exactly as an agent receives it.

NoteSelectors and URL schemes drift as sites change. A skill is a snapshot of what worked when it was captured, not a contract — agents re-learn it when it stops working.

Purpose

Interact with a numbered zone on famma-dhaw.com and choose the "pas de lumiere" option.

When to Use

Use when the caller provides a zone number such as {zone-number} and wants the no-lighting option selected.

Workflow

  1. Navigate directly to https://famma-dhaw.com/.
  2. Set input#search to {zone-number} and dispatch a bubbling input event. This is more reliable than typing because the zone chooser is reactive:
    (() => { const el = document.querySelector('input#search'); el.value = String({zone-number}); el.dispatchEvent(new Event('input', {bubbles:true})); return el.value; })()
  3. After the zone result is rendered, click button.zrow for the matching zone.
  4. Click the resulting button.vote.v-off control, which represents the "pas de lumiere" option.

Use one browser-agent call to perform the navigation, input update, zone click, and vote click, waiting briefly only if the reactive zone result has not rendered.

Concrete control-state extractor for the loaded page:

(() => ({
  search: document.querySelector("input#search")?.value ?? "",
  zones: [...document.querySelectorAll("button.zrow")]
    .filter((e) => {
      const r = e.getBoundingClientRect();
      return r.width > 0 && r.height > 0;
    })
    .map((e) => ({ text: e.innerText.trim(), disabled: e.disabled })),
  noLightVotes: [...document.querySelectorAll("button.vote.v-off")]
    .filter((e) => {
      const r = e.getBoundingClientRect();
      return r.width > 0 && r.height > 0;
    })
    .map((e) => ({ text: e.innerText.trim(), disabled: e.disabled })),
}))();

Site-Specific Gotchas

  • The zone search field is input#search; setting its value without dispatching an input event may not update the zone list.
  • The zone result is a button.zrow, not a conventional link.
  • The no-lighting vote control uses the combined class selector button.vote.v-off and should be clicked only after selecting the zone.
  • These class selectors are implementation-specific; confirm visibility and enabled state if the page changes.

Expected Output

The selected {zone-number} zone has its "pas de lumiere" vote activated; report completion or any disabled/unavailable control.

Call it

GET https://production-sfo.browserless.io/skills?token=TOKEN-HERE&domain=famma-dhaw.com&task=vote-on-zone