Fix BenchmarkRunner to only import selenium when needed
[WebKit-https.git] / Tools / Scripts / webkitpy / benchmark_runner / webdriver_benchmark_runner.py
index 1eb53f9966fd77ae13f4efe9cd4f884f47434d50..82c1d41b21529ff07dc4fbfdbd174d65ae645a4f 100644 (file)
@@ -4,7 +4,6 @@ import json
 import logging
 
 from benchmark_runner import BenchmarkRunner
 import logging
 
 from benchmark_runner import BenchmarkRunner
-from selenium.webdriver.support.ui import WebDriverWait
 
 
 _log = logging.getLogger(__name__)
 
 
 _log = logging.getLogger(__name__)
@@ -18,6 +17,7 @@ class WebDriverBenchmarkRunner(BenchmarkRunner):
         return result
 
     def _run_one_test(self, web_root, test_file):
         return result
 
     def _run_one_test(self, web_root, test_file):
+        from webkitpy.thirdparty.autoinstalled.selenium.webdriver.support.ui import WebDriverWait
         result = None
         try:
             url = 'file://{root}/{plan_name}/{test_file}'.format(root=web_root, plan_name=self._plan_name, test_file=test_file)
         result = None
         try:
             url = 'file://{root}/{plan_name}/{test_file}'.format(root=web_root, plan_name=self._plan_name, test_file=test_file)