1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
From: Sascha Girrulat <sascha@girrulat.de>
Date: Sat, 9 Dec 2017 18:17:22 +0100
Subject: Use x_ignore_nofocus from /usr/lib/firefoxdriver
It will be shipped by the firefoxdriver package from non-free
---
selenium/webdriver/firefox/firefox_binary.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/selenium/webdriver/firefox/firefox_binary.py b/selenium/webdriver/firefox/firefox_binary.py
index f619f1e..e039d25 100644
--- a/selenium/webdriver/firefox/firefox_binary.py
+++ b/selenium/webdriver/firefox/firefox_binary.py
@@ -191,6 +191,8 @@ class FirefoxBinary(object):
def _extract_and_check(self, profile, no_focus_so_name, x86, amd64):
+ os_lib_path = '/usr/lib/firefoxdriver'
+
paths = [x86, amd64]
built_path = ""
for path in paths:
@@ -200,6 +202,7 @@ class FirefoxBinary(object):
import shutil
shutil.copy(os.path.join(
os.path.dirname(__file__),
+ os_lib_path,
path,
self.NO_FOCUS_LIBRARY_NAME),
library_path)
|