OLD | NEW |
1 { | 1 { |
2 "description": "Chrome Endure test for GMail.", | 2 "description": "Chrome Endure test for GMail.", |
3 "archive_data_file": "../data/gmail_expand_collapse_conversation.json", | 3 "archive_data_file": "../data/gmail_expand_collapse_conversation.json", |
4 "credentials_path": "../data/credentials.json", | 4 "credentials_path": "../data/credentials.json", |
5 "user_agent_type": "desktop", | 5 "user_agent_type": "desktop", |
6 "pages": [ | 6 "pages": [ |
7 { | 7 { |
8 "url": "https://mail.google.com/mail/u/0/#inbox/13c6a141fa95ffe0", | 8 "url": "https://mail.google.com/mail/u/0/#inbox/13c6a141fa95ffe0", |
| 9 "name": "gmail_expand_collapse_conversation", |
9 "why": "Expand and Collapse a long conversation. # TODO(edmundyan): Find a
long conversation rather than hardcode url", | 10 "why": "Expand and Collapse a long conversation. # TODO(edmundyan): Find a
long conversation rather than hardcode url", |
10 "credentials": "google", | 11 "credentials": "google", |
11 "navigate_steps": [ | 12 "navigate_steps": [ |
12 { "action": "navigate" }, | 13 { "action": "navigate" }, |
13 { "action": "wait", "condition": "element", "selector": "img[alt=\"Expan
d all\"]" }, | 14 { "action": "wait", "condition": "element", "selector": "img[alt=\"Expan
d all\"]" }, |
14 { "action": "click_element", "selector": "img[alt=\"Expand all\"]" }, | 15 { "action": "click_element", "selector": "img[alt=\"Expand all\"]" }, |
15 { "action": "wait", "seconds": 5 }, | 16 { "action": "wait", "seconds": 5 }, |
16 { "action": "wait", "condition": "element", "selector": "img[alt=\"Colla
pse all\"]" }, | 17 { "action": "wait", "condition": "element", "selector": "img[alt=\"Colla
pse all\"]" }, |
17 { "action": "click_element", "selector": "img[alt=\"Collapse all\"]" }, | 18 { "action": "click_element", "selector": "img[alt=\"Collapse all\"]" }, |
18 { "action": "wait", "seconds": 1 } | 19 { "action": "wait", "seconds": 1 } |
19 ], | 20 ], |
20 "endure": [ | 21 "endure": [ |
21 { "action": "wait", "condition": "element", "selector": "img[alt=\"Expan
d all\"]" }, | 22 { "action": "wait", "condition": "element", "selector": "img[alt=\"Expan
d all\"]" }, |
22 { "action": "click_element", "selector": "img[alt=\"Expand all\"]" }, | 23 { "action": "click_element", "selector": "img[alt=\"Expand all\"]" }, |
23 { "action": "wait", "seconds": 1 }, | 24 { "action": "wait", "seconds": 1 }, |
24 { "action": "wait", "condition": "element", "selector": "img[alt=\"Colla
pse all\"]" }, | 25 { "action": "wait", "condition": "element", "selector": "img[alt=\"Colla
pse all\"]" }, |
25 { "action": "click_element", "selector": "img[alt=\"Collapse all\"]" }, | 26 { "action": "click_element", "selector": "img[alt=\"Collapse all\"]" }, |
26 { "action": "wait", "seconds": 1 } | 27 { "action": "wait", "seconds": 1 } |
27 ] | 28 ] |
28 } | 29 } |
29 ] | 30 ] |
30 } | 31 } |
OLD | NEW |