summaryrefslogtreecommitdiff
path: root/crocoite/behavior.py
diff options
context:
space:
mode:
Diffstat (limited to 'crocoite/behavior.py')
-rw-r--r--crocoite/behavior.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/crocoite/behavior.py b/crocoite/behavior.py
index e4ec93b..26841aa 100644
--- a/crocoite/behavior.py
+++ b/crocoite/behavior.py
@@ -222,17 +222,18 @@ class Screenshot (Behavior):
'X-Chrome-Viewport': viewport})
writer.write_record (record)
-### Site-specific scripts ###
+class Click (JsOnload):
+ """ Generic link clicking """
+
+ name = 'click'
+ scriptPath = 'click.js'
-class Twitter (HostnameFilter, JsOnload):
- name = 'twitter'
- scriptPath = 'per-site/twitter.js'
- hostname = ['com', 'twitter']
+### Site-specific scripts ###
# available behavior scripts. Order matters, move those modifying the page
# towards the end of available
-generic = [Scroll, EmulateScreenMetrics]
-perSite = [Twitter]
+generic = [Scroll, EmulateScreenMetrics, Click]
+perSite = []
available = generic + perSite + [Screenshot, DomSnapshot]
availableNames = set (map (lambda x: x.name, available))