File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
selenium/webdriver/webkitgtk Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,8 @@ def fin():
150150 options = get_options ("Firefox" , request .config ) or webdriver .FirefoxOptions ()
151151 options .set_capability ("moz:firefoxOptions" , {})
152152 options .enable_downloads = True
153- if driver_class == "WebKitGTK" :
153+ if driver_class .lower () == "webkitgtk" :
154+ driver_class = "WebKitGTK"
154155 options = get_options (driver_class , request .config )
155156 if driver_class == "Edge" :
156157 options = get_options (driver_class , request .config )
Original file line number Diff line number Diff line change 1414# KIND, either express or implied. See the License for the
1515# specific language governing permissions and limitations
1616# under the License.
17+ import shutil
1718import warnings
1819from typing import List
1920from typing import Mapping
2021from typing import Optional
2122
2223from selenium .webdriver .common import service
2324
24- DEFAULT_EXECUTABLE_PATH : str = "WebKitWebDriver"
25+ DEFAULT_EXECUTABLE_PATH : str = shutil . which ( "WebKitWebDriver" )
2526
2627
2728class Service (service .Service ):
2829 """A Service class that is responsible for the starting and stopping of
29- `WPEWebDriver `.
30+ `WebKitWebDriver `.
3031
31- :param executable_path: install path of the WebKitWebDriver executable, defaults to `WebKitWebDriver`.
32+ :param executable_path: install path of the WebKitWebDriver executable, defaults to the first `WebKitWebDriver` in `$PATH `.
3233 :param port: Port for the service to run on, defaults to 0 where the operating system will decide.
3334 :param service_args: (Optional) List of args to be passed to the subprocess when launching the executable.
3435 :param log_output: (Optional) File path for the file to be opened and passed as the subprocess stdout/stderr handler.
You can’t perform that action at this time.
0 commit comments