Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / tools / telemetry / telemetry / page / actions / wait.py
index 4c423b0..5dbdf00 100644 (file)
@@ -4,18 +4,19 @@
 
 from telemetry.page.actions import page_action
 
+
 class WaitForElementAction(page_action.PageAction):
   def __init__(self, selector=None, text=None, element_function=None,
-               timeout=60):
+               timeout_in_seconds=60):
     super(WaitForElementAction, self).__init__()
     self.selector = selector
     self.text = text
     self.element_function = element_function
-    self.timeout = timeout
+    self.timeout_in_seconds = timeout_in_seconds
 
   def RunAction(self, tab):
     code = 'function(element) { return element != null; }'
     page_action.EvaluateCallbackWithElement(
         tab, code, selector=self.selector, text=self.text,
         element_function=self.element_function,
-        wait=True, timeout=self.timeout)
+        wait=True, timeout_in_seconds=self.timeout_in_seconds)