Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Unified Diff: chrome/test/webdriver/chromedriver_launcher.py

Issue 6630001: Allow webdriver users to choose between sending the key events when... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/webdriver/chromedriver_launcher.py
===================================================================
--- chrome/test/webdriver/chromedriver_launcher.py (revision 76851)
+++ chrome/test/webdriver/chromedriver_launcher.py (working copy)
@@ -22,7 +22,8 @@
class ChromeDriverLauncher:
"""Launches and kills the ChromeDriver process."""
- def __init__(self, exe_path=None, root_path=None, port=None, url_base=None):
+ def __init__(self, exe_path=None, root_path=None, port=None, url_base=None,
+ use_native_events=False):
"""Initializes a new launcher.
Args:
@@ -35,6 +36,7 @@
self._root_path = root_path
self._port = port
self._url_base = url_base
+ self._use_native_events = use_native_events
if self._exe_path is None:
self._exe_path = ChromeDriverLauncher.LocateExe()
if self._exe_path is None:
@@ -133,6 +135,8 @@
chromedriver_args += ['--port=%d' % self._port]
if self._url_base is not None:
chromedriver_args += ['--url-base=%s' % self._url_base]
+ if self._use_native_events:
+ chromedriver_args += ['--native-events']
proc = subprocess.Popen(chromedriver_args,
stdout=subprocess.PIPE)
if proc is None:
@@ -201,5 +205,8 @@
def GetPort(self):
return self._port
+ def GetUseNativeEvents(self):
+ return self._use_native_events
+
def __del__(self):
self.Kill()

Powered by Google App Engine
This is Rietveld 408576698