| OLD | NEW |
| 1 { | 1 { |
| 2 "description": "Chrome Endure test for Google Calendar.", | 2 "description": "Chrome Endure test for Google Calendar.", |
| 3 "archive_data_file": "../data/calendar_forward_backward.json", | 3 "archive_data_file": "../data/calendar_forward_backward.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://www.google.com/calendar/", | 8 "url": "https://www.google.com/calendar/", |
| 9 "why": "Click forward(4x) and backwards(4x) repeatedly", | 9 "why": "Click forward(4x) and backwards(4x) repeatedly", |
| 10 "credentials": "google", | 10 "credentials": "google", |
| 11 "wait_for_element_with_selector": "div[class~=\"navForward\"]", | 11 "navigate_steps" : [ |
| 12 "post_navigate_javascript_to_execute": "(function() { var elem = document.
createElement('meta');elem.name='viewport';elem.content='initial-scale=1';docume
nt.body.appendChild(elem); })();", | 12 { "action": "navigate" }, |
| 13 "wait_seconds": 2, | 13 { "action": "wait", "seconds": 2 }, |
| 14 { "action": "wait", "condition": "element", "selector": "div[class~=\"n
avForward\"]" }, |
| 15 { "action": "javascript", "expression": "(function() { var elem = docume
nt.createElement('meta');elem.name='viewport';elem.content='initial-scale=1';doc
ument.body.appendChild(elem); })();" } |
| 16 ], |
| 14 "endure": [ | 17 "endure": [ |
| 15 { | 18 { "action": "click_element", "selector": "div[class~=\"navForward\"]" }, |
| 16 "action": "click_element", | 19 { "action": "wait", "condition": "element", "selector": "div[class~=\"na
vForward\"]" }, |
| 17 "selector": "div[class~=\"navForward\"]", | 20 { "action": "click_element", "selector": "div[class~=\"navForward\"]" }, |
| 18 "wait_seconds": 2, | 21 { "action": "wait", "condition": "element", "selector": "div[class~=\"na
vForward\"]" }, |
| 19 "wait_for_element_with_selector": "div[class~=\"navForward\"]" | 22 { "action": "click_element", "selector": "div[class~=\"navForward\"]" }, |
| 20 }, | 23 { "action": "wait", "condition": "element", "selector": "div[class~=\"na
vForward\"]" }, |
| 21 { | 24 { "action": "click_element", "selector": "div[class~=\"navForward\"]" }, |
| 22 "action": "click_element", | 25 { "action": "wait", "condition": "element", "selector": "div[class~=\"na
vBack\"]" }, |
| 23 "selector": "div[class~=\"navForward\"]", | 26 { "action": "click_element", "selector": "div[class~=\"navBack\"]" }, |
| 24 "wait_seconds": 2, | 27 { "action": "wait", "condition": "element", "selector": "div[class~=\"na
vBack\"]" }, |
| 25 "wait_for_element_with_selector": "div[class~=\"navForward\"]" | 28 { "action": "click_element", "selector": "div[class~=\"navBack\"]" }, |
| 26 }, | 29 { "action": "wait", "condition": "element", "selector": "div[class~=\"na
vBack\"]" }, |
| 27 { | 30 { "action": "click_element", "selector": "div[class~=\"navBack\"]" }, |
| 28 "action": "click_element", | 31 { "action": "wait", "condition": "element", "selector": "div[class~=\"na
vBack\"]" }, |
| 29 "selector": "div[class~=\"navForward\"]", | 32 { "action": "click_element", "selector": "div[class~=\"navBack\"]" }, |
| 30 "wait_seconds": 2, | 33 { "action": "wait", "condition": "element", "selector": "div[class~=\"na
vForward\"]" } |
| 31 "wait_for_element_with_selector": "div[class~=\"navForward\"]" | |
| 32 }, | |
| 33 { | |
| 34 "action": "click_element", | |
| 35 "selector": "div[class~=\"navForward\"]", | |
| 36 "wait_seconds": 2, | |
| 37 "wait_for_element_with_selector": "div[class~=\"navBack\"]" | |
| 38 }, | |
| 39 { | |
| 40 "action": "click_element", | |
| 41 "selector": "div[class~=\"navBack\"]", | |
| 42 "wait_seconds": 2, | |
| 43 "wait_for_element_with_selector": "div[class~=\"navBack\"]" | |
| 44 }, | |
| 45 { | |
| 46 "action": "click_element", | |
| 47 "selector": "div[class~=\"navBack\"]", | |
| 48 "wait_seconds": 2, | |
| 49 "wait_for_element_with_selector": "div[class~=\"navBack\"]" | |
| 50 }, | |
| 51 { | |
| 52 "action": "click_element", | |
| 53 "selector": "div[class~=\"navBack\"]", | |
| 54 "wait_seconds": 2, | |
| 55 "wait_for_element_with_selector": "div[class~=\"navBack\"]" | |
| 56 }, | |
| 57 { | |
| 58 "action": "click_element", | |
| 59 "selector": "div[class~=\"navBack\"]", | |
| 60 "wait_seconds": 2, | |
| 61 "wait_for_element_with_selector": "div[class~=\"navForward\"]" | |
| 62 } | |
| 63 ] | 34 ] |
| 64 } | 35 } |
| 65 ] | 36 ] |
| 66 } | 37 } |
| OLD | NEW |