Index: tools/perf/page_sets/plus_alt_posts_photos.py |
diff --git a/tools/perf/page_sets/plus_alt_posts_photos.py b/tools/perf/page_sets/plus_alt_posts_photos.py |
index 2c18960e2a6c279aa640b3c8349c6b82833080db..5aa53babd4f1f1a1a1b2fe76b6e1c8895ab3b95e 100644 |
--- a/tools/perf/page_sets/plus_alt_posts_photos.py |
+++ b/tools/perf/page_sets/plus_alt_posts_photos.py |
@@ -23,44 +23,25 @@ class PlusAltPostsPhotosPage(page_module.Page): |
def RunNavigateSteps(self, action_runner): |
action_runner.NavigateToPage(self) |
- action_runner.RunAction(WaitAction( |
- { |
- 'text': 'Barack Obama', |
- 'condition': 'element' |
- })) |
- action_runner.RunAction(WaitAction( |
- { |
- 'condition': 'element', |
- 'selector': 'span[guidedhelpid="posts_tab_profile"][class*="s6U8x"]' |
- })) |
+ action_runner.WaitForElement(text='Barack Obama') |
+ action_runner.WaitForElement( |
+ 'span[guidedhelpid="posts_tab_profile"][class*="s6U8x"]') |
def RunEndure(self, action_runner): |
action_runner.RunAction(ClickElementAction( |
{ |
'selector': 'span[guidedhelpid="posts_tab_profile"]' |
})) |
- action_runner.RunAction(WaitAction( |
- { |
- 'condition': 'element', |
- 'selector': 'span[guidedhelpid="posts_tab_profile"][class*="s6U8x"]' |
- })) |
- action_runner.RunAction(WaitAction( |
- { |
- 'seconds': 5 |
- })) |
+ action_runner.WaitForElement( |
+ 'span[guidedhelpid="posts_tab_profile"][class*="s6U8x"]') |
+ action_runner.Wait(5) |
action_runner.RunAction(ClickElementAction( |
{ |
'selector': 'span[guidedhelpid="photos_tab_profile"]' |
})) |
- action_runner.RunAction(WaitAction( |
- { |
- 'condition': 'element', |
- 'selector': 'span[guidedhelpid="photos_tab_profile"][class*="s6U8x"]' |
- })) |
- action_runner.RunAction(WaitAction( |
- { |
- 'seconds': 5 |
- })) |
+ action_runner.WaitForElement( |
+ 'span[guidedhelpid="photos_tab_profile"][class*="s6U8x"]') |
+ action_runner.Wait(5) |
class PlusAltPostsPhotosPageSet(page_set_module.PageSet): |