| Index: tools/perf/page_sets/top_25.json
|
| diff --git a/tools/perf/page_sets/top_25.json b/tools/perf/page_sets/top_25.json
|
| index 3f47fa6f30f6c683352449023e19a7a2ee6eea94..619ff779307854d0a3f713024bb62d54a2ab376a 100644
|
| --- a/tools/perf/page_sets/top_25.json
|
| +++ b/tools/perf/page_sets/top_25.json
|
| @@ -8,148 +8,109 @@
|
| {
|
| "url": "https://www.google.com/#hl=en&q=barack+obama",
|
| "why": "top google property; a google tab is often open",
|
| - "wait_for_element_with_text": "Next",
|
| + "navigate_steps" : [
|
| + { "action": "navigate" },
|
| + { "action": "wait", "condition": "element", "text": "Next" }
|
| + ],
|
| "stress_memory": [
|
| { "action": "scroll" },
|
| - {
|
| - "action": "click_element",
|
| - "text": "Next",
|
| - "wait_for_href_change": true,
|
| - "wait_for_element_with_text": "Next"
|
| - },
|
| + { "action": "click_element", "text": "Next" },
|
| + { "action": "wait", "condition": "href_change" },
|
| + { "action": "wait", "condition": "element", "text": "Next" },
|
| { "action": "scroll" },
|
| - {
|
| - "action": "click_element",
|
| - "text": "Next",
|
| - "wait_for_href_change": true,
|
| - "wait_for_element_with_text": "Next"
|
| - },
|
| + { "action": "click_element", "text": "Next" },
|
| + { "action": "wait", "condition": "href_change" },
|
| + { "action": "wait", "condition": "element", "text": "Next" },
|
| { "action": "scroll" },
|
| - {
|
| - "action": "click_element",
|
| - "text": "Next",
|
| - "wait_for_href_change": true,
|
| - "wait_for_element_with_text": "Previous"
|
| - },
|
| + { "action": "click_element", "text": "Next" },
|
| + { "action": "wait", "condition": "href_change" },
|
| + { "action": "wait", "condition": "element", "text": "Previous" },
|
| { "action": "scroll" },
|
| - {
|
| - "action": "click_element",
|
| - "text": "Previous",
|
| - "wait_for_href_change": true,
|
| - "wait_for_element_with_text": "Previous"
|
| - },
|
| + { "action": "click_element", "text": "Previous" },
|
| + { "action": "wait", "condition": "href_change" },
|
| + { "action": "wait", "condition": "element", "text": "Previous" },
|
| { "action": "scroll" },
|
| - {
|
| - "action": "click_element",
|
| - "text": "Previous",
|
| - "wait_for_href_change": true,
|
| - "wait_for_element_with_text": "Previous"
|
| - },
|
| + { "action": "click_element", "text": "Previous" },
|
| + { "action": "wait", "condition": "href_change" },
|
| + { "action": "wait", "condition": "element", "text": "Previous" },
|
| { "action": "scroll" },
|
| - {
|
| - "action": "click_element",
|
| - "text": "Previous",
|
| - "wait_for_href_change": true,
|
| - "wait_for_element_with_text": "Images"
|
| - },
|
| + { "action": "click_element", "text": "Previous" },
|
| + { "action": "wait", "condition": "href_change" },
|
| + { "action": "wait", "condition": "element", "text": "Images" },
|
| { "action": "scroll" },
|
| - {
|
| - "action": "click_element",
|
| - "text": "Images",
|
| - "wait_for_href_change": true,
|
| - "wait_for_element_with_text": "Images"
|
| - }
|
| + { "action": "click_element", "text": "Images" },
|
| + { "action": "wait", "condition": "href_change" },
|
| + { "action": "wait", "condition": "element", "text": "Images" }
|
| ]
|
| },
|
| {
|
| "url": "https://mail.google.com/mail/",
|
| "why": "productivity, top google properties",
|
| "credentials": "google",
|
| - "wait_for_javascript_expression": "window.gmonkey !== undefined && document.getElementById('gb') !== null",
|
| + "navigate_steps" : [
|
| + { "action": "navigate" },
|
| + { "action": "wait", "javascript": "window.gmonkey !== undefined && document.getElementById('gb') !== null" }
|
| + ],
|
| "smoothness": {
|
| "action": "scroll",
|
| "scrollable_element_function": "function(callback) { gmonkey.load('2.0', function(api) { callback(api.getScrollableElement()); }); }"
|
| },
|
| "stress_memory": [
|
| - {
|
| - "action": "click_element",
|
| - "selector": "a[href=\"https://mail.google.com/mail/u/0/?shva=1#starred\"]",
|
| - "wait_for_href_change": true
|
| - },
|
| - {
|
| - "action": "click_element",
|
| - "selector": "a[href=\"https://mail.google.com/mail/u/0/?shva=1#inbox\"]",
|
| - "wait_for_href_change": true
|
| - }
|
| + { "action": "click_element", "selector": "a[href=\"https://mail.google.com/mail/u/0/?shva=1#starred\"]" },
|
| + { "action": "wait", "condition": "href_change" },
|
| + { "action": "click_element", "selector": "a[href=\"https://mail.google.com/mail/u/0/?shva=1#inbox\"]" },
|
| + { "action": "wait", "condition": "href_change" }
|
| ]
|
| },
|
| {
|
| "url": "https://www.google.com/calendar/",
|
| "why": "productivity, top google properties",
|
| "credentials": "google",
|
| - "wait_for_element_with_selector": "div[class~=\"navForward\"]",
|
| - "post_navigate_javascript_to_execute": "(function() { var elem = document.createElement('meta');elem.name='viewport';elem.content='initial-scale=1';document.body.appendChild(elem); })();",
|
| - "wait_seconds": 2,
|
| + "navigate_steps" : [
|
| + { "action": "navigate" },
|
| + { "action": "wait", "seconds": 2 },
|
| + { "action": "wait", "condition": "element", "selector": "div[class~=\"navForward\"]" },
|
| + { "action": "javascript", "expression": "(function() { var elem = document.createElement('meta');elem.name='viewport';elem.content='initial-scale=1';document.body.appendChild(elem); })();" }
|
| + ],
|
| "smoothness": {
|
| "action": "scroll",
|
| "scrollable_element_function": "function(callback) { callback(document.getElementById('scrolltimedeventswk')); }"
|
| },
|
| "stress_memory": [
|
| - {
|
| - "action": "click_element",
|
| - "selector": "div[class~=\"navForward\"]",
|
| - "wait_for_seconds": 2,
|
| - "wait_for_element_with_selector": "div[class~=\"navForward\"]"
|
| - },
|
| - {
|
| - "action": "click_element",
|
| - "selector": "div[class~=\"navForward\"]",
|
| - "wait_for_seconds": 2,
|
| - "wait_for_element_with_selector": "div[class~=\"navForward\"]"
|
| - },
|
| - {
|
| - "action": "click_element",
|
| - "selector": "div[class~=\"navForward\"]",
|
| - "wait_for_seconds": 2,
|
| - "wait_for_element_with_selector": "div[class~=\"navForward\"]"
|
| - },
|
| - {
|
| - "action": "click_element",
|
| - "selector": "div[class~=\"navForward\"]",
|
| - "wait_for_seconds": 2,
|
| - "wait_for_element_with_selector": "div[class~=\"navBack\"]"
|
| - },
|
| - {
|
| - "action": "click_element",
|
| - "selector": "div[class~=\"navBack\"]",
|
| - "wait_for_seconds": 2,
|
| - "wait_for_element_with_selector": "div[class~=\"navBack\"]"
|
| - },
|
| - {
|
| - "action": "click_element",
|
| - "selector": "div[class~=\"navBack\"]",
|
| - "wait_for_seconds": 2,
|
| - "wait_for_element_with_selector": "div[class~=\"navBack\"]"
|
| - },
|
| - {
|
| - "action": "click_element",
|
| - "selector": "div[class~=\"navBack\"]",
|
| - "wait_for_seconds": 2,
|
| - "wait_for_element_with_selector": "div[class~=\"navBack\"]"
|
| - },
|
| - {
|
| - "action": "click_element",
|
| - "selector": "div[class~=\"navBack\"]",
|
| - "wait_for_seconds": 2,
|
| - "wait_for_element_with_selector": "div[class~=\"navBack\"]"
|
| - }
|
| + { "action": "click_element", "selector": "div[class~=\"navForward\"]" },
|
| + { "action": "wait", "seconds": 2 },
|
| + { "action": "wait", "condition": "element", "selector": "div[class~=\"navForward\"]" },
|
| + { "action": "click_element", "selector": "div[class~=\"navForward\"]" },
|
| + { "action": "wait", "seconds": 2 },
|
| + { "action": "wait", "condition": "element", "selector": "div[class~=\"navForward\"]" },
|
| + { "action": "click_element", "selector": "div[class~=\"navForward\"]" },
|
| + { "action": "wait", "seconds": 2 },
|
| + { "action": "wait", "condition": "element", "selector": "div[class~=\"navForward\"]" },
|
| + { "action": "click_element", "selector": "div[class~=\"navForward\"]" },
|
| + { "action": "wait", "seconds": 2 },
|
| + { "action": "wait", "condition": "element", "selector": "div[class~=\"navBack\"]" },
|
| + { "action": "click_element", "selector": "div[class~=\"navBack\"]" },
|
| + { "action": "wait", "seconds": 2 },
|
| + { "action": "wait", "condition": "element", "selector": "div[class~=\"navBack\"]" },
|
| + { "action": "click_element", "selector": "div[class~=\"navBack\"]" },
|
| + { "action": "wait", "seconds": 2 },
|
| + { "action": "wait", "condition": "element", "selector": "div[class~=\"navBack\"]" },
|
| + { "action": "click_element", "selector": "div[class~=\"navBack\"]" },
|
| + { "action": "wait", "seconds": 2 },
|
| + { "action": "wait", "condition": "element", "selector": "div[class~=\"navBack\"]" },
|
| + { "action": "click_element", "selector": "div[class~=\"navBack\"]" },
|
| + { "action": "wait", "seconds": 2 },
|
| + { "action": "wait", "condition": "element", "selector": "div[class~=\"navBack\"]" }
|
| ]
|
| },
|
| {
|
| "url": "https://drive.google.com",
|
| "why": "productivity, top google properties",
|
| "credentials": "google",
|
| - "wait_for_javascript_expression": "document.getElementsByClassName('doclistview-list').length",
|
| + "navigate_steps" : [
|
| + { "action": "navigate" },
|
| + { "action": "wait", "javascript": "document.getElementsByClassName('doclistview-list').length" }
|
| + ],
|
| "smoothness": {
|
| "action": "scroll",
|
| "scrollable_element_function": "function(callback) { callback(document.getElementsByClassName('doclistview-list')[0]); }"
|
| @@ -160,8 +121,11 @@
|
| "url": "https://docs.google.com/document/d/1X-IKNjtEnx-WW5JIKRLsyhz5sbsat3mfTpAPUSX3_s4/view",
|
| "why": "productivity, top google properties; Sample doc in the link",
|
| "credentials": "google",
|
| - "wait_for_javascript_expression": "document.getElementsByClassName('kix-appview-editor').length",
|
| - "wait_seconds": 2,
|
| + "navigate_steps" : [
|
| + { "action": "navigate" },
|
| + { "action": "wait", "seconds": 2 },
|
| + { "action": "wait", "javascript": "document.getElementsByClassName('kix-appview-editor').length" }
|
| + ],
|
| "smoothness": {
|
| "action": "scroll",
|
| "scrollable_element_function": "function(callback) { callback(document.getElementsByClassName('kix-appview-editor')[0]); }"
|
| @@ -171,112 +135,88 @@
|
| "url": "https://plus.google.com/110031535020051778989/posts",
|
| "why": "social; top google property; Public profile; infinite scrolls",
|
| "credentials": "google",
|
| - "wait_for_element_with_text": "Home",
|
| + "navigate_steps" : [
|
| + { "action": "navigate" },
|
| + { "action": "wait", "condition": "element", "text": "Home" }
|
| + ],
|
| "smoothness": {
|
| "action": "scroll",
|
| "scroll_is_infinite": true
|
| },
|
| "stress_memory": [
|
| - {
|
| - "action": "click_element",
|
| - "text": "Home",
|
| - "wait_seconds": 2,
|
| - "wait_for_element_with_text": "Profile"
|
| - },
|
| - {
|
| - "action": "click_element",
|
| - "text": "Profile",
|
| - "wait_seconds": 2,
|
| - "wait_for_element_with_text": "Explore"
|
| - },
|
| - {
|
| - "action": "click_element",
|
| - "text": "Explore",
|
| - "wait_seconds": 2,
|
| - "wait_for_element_with_text": "Events"
|
| - },
|
| - {
|
| - "action": "click_element",
|
| - "text": "Events",
|
| - "wait_seconds": 2,
|
| - "wait_for_element_with_text": "Communities"
|
| - },
|
| - {
|
| - "action": "click_element",
|
| - "text": "Communities",
|
| - "wait_seconds": 2,
|
| - "wait_for_element_with_text": "Home"
|
| - }
|
| + { "action": "click_element", "text": "Home" },
|
| + { "action": "wait", "seconds": 2 },
|
| + { "action": "wait", "condition": "element", "text": "Profile" },
|
| + { "action": "click_element", "text": "Profile" },
|
| + { "action": "wait", "seconds": 2 },
|
| + { "action": "wait", "condition": "element", "text": "Explore" },
|
| + { "action": "click_element", "text": "Explore" },
|
| + { "action": "wait", "seconds": 2 },
|
| + { "action": "wait", "condition": "element", "text": "Events" },
|
| + { "action": "click_element", "text": "Events" },
|
| + { "action": "wait", "seconds": 2 },
|
| + { "action": "wait", "condition": "element", "text": "Communities" },
|
| + { "action": "click_element", "text": "Communities" },
|
| + { "action": "wait", "seconds": 2 },
|
| + { "action": "wait", "condition": "element", "text": "Home" }
|
| ]
|
| },
|
| {
|
| "url": "http://www.youtube.com",
|
| "why": "#3 (Alexa global)",
|
| - "wait_seconds": 2,
|
| + "navigate_steps" : [
|
| + { "action": "navigate" },
|
| + { "action": "wait", "seconds": 2 }
|
| + ],
|
| "credentials": "google"
|
| },
|
| {
|
| "name": "Blogger",
|
| "url": "http://googlewebmastercentral.blogspot.com/",
|
| "why": "#11 (Alexa global), google property; some blogger layouts have infinite scroll but more interesting",
|
| - "wait_for_element_with_text": "accessibility",
|
| + "navigate_steps" : [
|
| + { "action": "navigate" },
|
| + { "action": "wait", "condition": "element", "text": "accessibility" }
|
| + ],
|
| "stress_memory": [
|
| - {
|
| - "action": "click_element",
|
| - "text": "accessibility",
|
| - "wait_for_navigate": true,
|
| - "wait_for_element_with_text": "advanced"
|
| - },
|
| + { "action": "click_element", "text": "accessibility" },
|
| + { "action": "wait", "condition": "navigate" },
|
| + { "action": "wait", "condition": "element", "text": "advanced" },
|
| { "action": "scroll" },
|
| - {
|
| - "action": "click_element",
|
| - "text": "advanced",
|
| - "wait_for_navigate": true,
|
| - "wait_for_element_with_text": "beginner"
|
| - },
|
| + { "action": "click_element", "text": "advanced" },
|
| + { "action": "wait", "condition": "navigate" },
|
| + { "action": "wait", "condition": "element", "text": "beginner" },
|
| { "action": "scroll" },
|
| - {
|
| - "action": "click_element",
|
| - "text": "beginner",
|
| - "wait_for_navigate": true,
|
| - "wait_for_element_with_text": "Home"
|
| - },
|
| + { "action": "click_element", "text": "beginner" },
|
| + { "action": "wait", "condition": "navigate" },
|
| + { "action": "wait", "condition": "element", "text": "Home" },
|
| { "action": "scroll" },
|
| - {
|
| - "action": "click_element",
|
| - "text": "Home",
|
| - "wait_for_navigate": true,
|
| - "wait_for_element_with_text": "Home"
|
| - }
|
| + { "action": "click_element", "text": "Home" },
|
| + { "action": "wait", "condition": "navigate" },
|
| + { "action": "wait", "condition": "element", "text": "Home" }
|
| ]
|
| },
|
| {
|
| "name": "Wordpress",
|
| "url": "http://en.blog.wordpress.com/2012/09/04/freshly-pressed-editors-picks-for-august-2012/",
|
| "why": "#18 (Alexa global), Picked an interesting post",
|
| - "wait_for_element_with_selector": "a[href=\"http://en.blog.wordpress.com/2012/08/30/new-themes-able-and-sight/\"]",
|
| + "navigate_steps" : [
|
| + { "action": "navigate" },
|
| + { "action": "wait", "condition": "element", "selector": "a[href=\"http://en.blog.wordpress.com/2012/08/30/new-themes-able-and-sight/\"]" }
|
| + ],
|
| "stress_memory": [
|
| { "action": "scroll" },
|
| - {
|
| - "action": "click_element",
|
| - "selector": "a[href=\"http://en.blog.wordpress.com/2012/08/30/new-themes-able-and-sight/\"]",
|
| - "wait_for_navigate": true,
|
| - "wait_for_element_with_text": "Features"
|
| - },
|
| + { "action": "click_element", "selector": "a[href=\"http://en.blog.wordpress.com/2012/08/30/new-themes-able-and-sight/\"]" },
|
| + { "action": "wait", "condition": "navigate" },
|
| + { "action": "wait", "condition": "element", "text": "Features" },
|
| { "action": "scroll" },
|
| - {
|
| - "action": "click_element",
|
| - "text": "Features",
|
| - "wait_for_navigate": true,
|
| - "wait_for_element_with_text": "News"
|
| - },
|
| + { "action": "click_element", "text": "Features" },
|
| + { "action": "wait", "condition": "navigate" },
|
| + { "action": "wait", "condition": "element", "text": "News" },
|
| { "action": "scroll" },
|
| - {
|
| - "action": "click_element",
|
| - "text": "News",
|
| - "wait_for_navigate": true,
|
| - "wait_for_element_with_text": "News"
|
| - },
|
| + { "action": "click_element", "text": "News" },
|
| + { "action": "wait", "condition": "navigate" },
|
| + { "action": "wait", "condition": "element", "text": "News" },
|
| { "action": "scroll" }
|
| ]
|
| },
|
| @@ -285,48 +225,33 @@
|
| "url": "http://www.facebook.com/barackobama",
|
| "why": "top social,Public profile",
|
| "credentials": "facebook",
|
| - "wait_for_element_with_text": "About",
|
| + "navigate_steps" : [
|
| + { "action": "navigate" },
|
| + { "action": "wait", "condition": "element", "text": "About" }
|
| + ],
|
| "smoothness": {
|
| "action": "scroll",
|
| "scroll_is_infinite": true
|
| },
|
| "stress_memory": [
|
| - {
|
| - "action": "click_element",
|
| - "text": "About",
|
| - "wait_for_navigate": true,
|
| - "wait_for_element_with_text": "The Audacity of Hope"
|
| - },
|
| - {
|
| - "action": "click_element",
|
| - "text": "The Audacity of Hope",
|
| - "wait_for_navigate": true,
|
| - "wait_for_element_with_text": "Back to Barack Obama's Timeline"
|
| - },
|
| - {
|
| - "action": "click_element",
|
| - "text": "Back to Barack Obama's Timeline",
|
| - "wait_for_navigate": true,
|
| - "wait_for_element_with_text": "About"
|
| - },
|
| - {
|
| - "action": "click_element",
|
| - "text": "About",
|
| - "wait_for_navigate": true,
|
| - "wait_for_element_with_text": "Elected to U.S. Senate"
|
| - },
|
| - {
|
| - "action": "click_element",
|
| - "text": "Elected to U.S. Senate",
|
| - "wait_for_navigate": true,
|
| - "wait_for_element_with_text": "Home"
|
| - },
|
| - {
|
| - "action": "click_element",
|
| - "text": "Home",
|
| - "wait_for_navigate": true,
|
| - "wait_for_element_with_text": "Home"
|
| - }
|
| + { "action": "click_element", "text": "About" },
|
| + { "action": "wait", "condition": "navigate" },
|
| + { "action": "wait", "condition": "element", "text": "The Audacity of Hope" },
|
| + { "action": "click_element", "text": "The Audacity of Hope" },
|
| + { "action": "wait", "condition": "navigate" },
|
| + { "action": "wait", "condition": "element", "text": "Back to Barack Obama's Timeline" },
|
| + { "action": "click_element", "text": "Back to Barack Obama's Timeline" },
|
| + { "action": "wait", "condition": "navigate" },
|
| + { "action": "wait", "condition": "element", "text": "About" },
|
| + { "action": "click_element", "text": "About" },
|
| + { "action": "wait", "condition": "navigate" },
|
| + { "action": "wait", "condition": "element", "text": "Elected to U.S. Senate" },
|
| + { "action": "click_element", "text": "Elected to U.S. Senate" },
|
| + { "action": "wait", "condition": "navigate" },
|
| + { "action": "wait", "condition": "element", "text": "Home" },
|
| + { "action": "click_element", "text": "Home" },
|
| + { "action": "wait", "condition": "navigate" },
|
| + { "action": "wait", "condition": "element", "text": "Home" }
|
| ]
|
| },
|
| {
|
| @@ -343,7 +268,10 @@
|
| "name": "Twitter",
|
| "url": "https://twitter.com/katyperry",
|
| "why": "#8 (Alexa global),Picked an interesting page",
|
| - "wait_seconds": 2,
|
| + "navigate_steps" : [
|
| + { "action": "navigate" },
|
| + { "action": "wait", "seconds": 2 }
|
| + ],
|
| "smoothness": {
|
| "action": "scroll",
|
| "scroll_is_infinite": true
|
| @@ -391,7 +319,10 @@
|
| {
|
| "url": "http://games.yahoo.com",
|
| "why": "#1 games according to Alexa (with actual games in it)",
|
| - "wait_seconds": 2
|
| + "navigate_steps" : [
|
| + { "action": "navigate" },
|
| + { "action": "wait", "seconds": 2 }
|
| + ]
|
| },
|
| {
|
| "url": "http://booking.com",
|
|
|