summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/telemetry/telemetry/page/page.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/tools/telemetry/telemetry/page/page.py b/tools/telemetry/telemetry/page/page.py
index da811ac..0185021 100644
--- a/tools/telemetry/telemetry/page/page.py
+++ b/tools/telemetry/telemetry/page/page.py
@@ -20,10 +20,14 @@ class Page(object):
self.url = url
self.page_set = page_set
self.base_dir = base_dir
- self.credentials = None
- self.disabled = False
- self.wait_time_after_navigate = 2
- self._attributes = attributes
+
+ # These _attributes can be set dynamically by the page.
+ self._attributes = {}
+ self._attributes['credentials'] = None
+ self._attributes['disabled'] = False
+ self._attributes['wait_time_after_navigate'] = 2
+ if attributes:
+ self._attributes.update(attributes)
def __getattr__(self, name):
if name in self._attributes: