Home | History | Annotate | Download | only in page_sets
      1 {
      2   "description": "Chrome Endure test for IndexedDB.",
      3   "user_agent_type": "desktop",
      4   "pages": [
      5     {
      6       "url": "file://endure/indexeddb_app.html",
      7       "name": "indexeddb_offline",
      8       "why": "Simulates user input while offline and sync while online.",
      9       "navigate_steps": [
     10         { "action": "navigate" },
     11         { "action": "wait", "condition": "element", "text": "initialized" }
     12       ],
     13       "endure": [
     14         { "action": "wait", "condition": "element", "selector": "button[id=\"online\"]:not(disabled)" },
     15         { "action": "click_element", "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": "click_element", "selector": "button[id=\"offline\"]:not(disabled)" },
     20         { "action": "wait", "condition": "element", "xpath": "id(\"state\")[text()=\"offline\"]" }
     21       ]
     22     }
     23   ]
     24 }
     25