| { |
| "description": "Chrome Endure test for IndexedDB.", |
| "user_agent_type": "desktop", |
| "pages": [ |
| { |
| "url": "file://endure/indexeddb_app.html", |
| "name": "indexeddb_offline", |
| "why": "Simulates user input while offline and sync while online.", |
| "navigate_steps": [ |
| { "action": "navigate" }, |
| { "action": "wait", "condition": "element", "text": "initialized" } |
| ], |
| "endure": [ |
| { "action": "wait", "condition": "element", "selector": "button[id=\"online\"]:not(disabled)" }, |
| { "action": "click_element", "selector": "button[id=\"online\"]:not(disabled)" }, |
| { "action": "wait", "condition": "element", "xpath": "id(\"state\")[text()=\"online\"]" }, |
| { "action": "wait", "seconds": 1 }, |
| { "action": "wait", "condition": "element", "selector": "button[id=\"offline\"]:not(disabled)" }, |
| { "action": "click_element", "selector": "button[id=\"offline\"]:not(disabled)" }, |
| { "action": "wait", "condition": "element", "xpath": "id(\"state\")[text()=\"offline\"]" } |
| ] |
| } |
| ] |
| } |