2 "description": "Chrome Endure test for IndexedDB.",
3 "user_agent_type": "desktop",
6 "url": "file://endure/indexeddb_app.html",
7 "name": "indexeddb_offline",
8 "why": "Simulates user input while offline and sync while online.",
10 { "action": "navigate" },
11 { "action": "wait", "condition": "element", "text": "initialized" }
14 { "action": "wait", "condition": "element", "selector": "button[id=\"online\"]:not(disabled)" },
15 { "action": "javascript_click", "selector": "button[id=\"online\"]:not(disabled)" },
16 { "action": "wait", "condition": "element", "xpath": "id(\"state\")[text()=\"online\"]" },
17 { "action": "wait", "seconds": 1 },
18 { "action": "wait", "condition": "element", "selector": "button[id=\"offline\"]:not(disabled)" },
19 { "action": "javascript_click", "selector": "button[id=\"offline\"]:not(disabled)" },
20 { "action": "wait", "condition": "element", "xpath": "id(\"state\")[text()=\"offline\"]" }