Commit 7425162
authored
[py] Fix WebKitGTK driver name check (SeleniumHQ#15046)
py: Fix WebKitGTK driver name.
Similar to WPEWebKit changes from 24d88d7, WebKitGTK does not
follow the simple capitalization scheme for the driver name.
This commit also changes the default `WebKitWebDriver` binary to the
first one in `PATH` through shutil.which, instead of just the binary
name.
(Note: The effort to move to `pathlib` instead of `shutil`[1] is more
related to shutil's functions that work on files and directories, like
copy and move, instead of `which`, which just searches the executable
paths for the given command.)
[1] https://discuss.python.org/t/incrementally-move-high-level-path-operations-from-shutil-to-pathlib/192081 parent 8ae9c3b commit 7425162
2 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
| 30 | + | |
30 | 31 | | |
31 | | - | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
0 commit comments