| { |
| "description": "Chrome Endure test for GMail.", |
| "archive_data_file": "data/gmail_expand_collapse_conversation.json", |
| "credentials_path": "data/credentials.json", |
| "user_agent_type": "desktop", |
| "pages": [ |
| { |
| "url": "https://mail.google.com/mail/u/0/#inbox/13c6a141fa95ffe0", |
| "name": "gmail_expand_collapse_conversation", |
| "why": "Expand and Collapse a long conversation. # TODO(edmundyan): Find a long conversation rather than hardcode url", |
| "credentials": "google", |
| "navigate_steps": [ |
| { "action": "navigate" }, |
| { "action": "wait", "condition": "element", "selector": "img[alt=\"Expand all\"]" }, |
| { "action": "click_element", "selector": "img[alt=\"Expand all\"]" }, |
| { "action": "wait", "seconds": 5 }, |
| { "action": "wait", "condition": "element", "selector": "img[alt=\"Collapse all\"]" }, |
| { "action": "click_element", "selector": "img[alt=\"Collapse all\"]" }, |
| { "action": "wait", "seconds": 1 } |
| ], |
| "endure": [ |
| { "action": "wait", "condition": "element", "selector": "img[alt=\"Expand all\"]" }, |
| { "action": "click_element", "selector": "img[alt=\"Expand all\"]" }, |
| { "action": "wait", "seconds": 1 }, |
| { "action": "wait", "condition": "element", "selector": "img[alt=\"Collapse all\"]" }, |
| { "action": "click_element", "selector": "img[alt=\"Collapse all\"]" }, |
| { "action": "wait", "seconds": 1 } |
| ] |
| } |
| ] |
| } |