Skip to content

Commit 1dfa3f2

Browse files
authored
Pass a channel argument from install_driver() to install_webdriver_by_version() (#46002)
When running WPT on Chrome Android, the below error happens. 'TypeError: Chrome.install_webdriver_by_version() missing 1 required positional argument: 'channel'' This PR passes the channel argument to avoid the error.
1 parent 9b5719f commit 1dfa3f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/wpt/browser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1452,7 +1452,7 @@ def install_webdriver(self, dest=None, channel=None, browser_binary=None):
14521452
if browser_binary is None:
14531453
browser_binary = self.find_binary(channel)
14541454
chrome = Chrome(self.logger)
1455-
return chrome.install_webdriver_by_version(self.version(browser_binary), dest)
1455+
return chrome.install_webdriver_by_version(self.version(browser_binary), dest, channel)
14561456

14571457
def version(self, binary=None, webdriver_binary=None):
14581458
if not binary:

0 commit comments

Comments
 (0)