Skip to content

Commit 749d1a4

Browse files
cwd-googV8 LUCI CQ
authored andcommitted
loading switch_tab search instead of match
So we can write "example.com" and have it match http://example.com. Change-Id: I4952d79eb0ae37adbdd4c49593847446a8c324c6 Reviewed-on: https://chromium-review.googlesource.com/c/crossbench/+/6658463 Commit-Queue: Charles Dick <[email protected]> Reviewed-by: Kameron Lutes <[email protected]>
1 parent 829e346 commit 749d1a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crossbench/browsers/chromium_based/webdriver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,10 @@ def switch_tab(
256256
for handle in handles:
257257
driver.switch_to.window(handle)
258258
if title is not None:
259-
if title.match(driver.title) is None:
259+
if title.search(driver.title) is None:
260260
continue
261261
if url is not None:
262-
if url.match(driver.current_url) is None:
262+
if url.search(driver.current_url) is None:
263263
continue
264264
return handle
265265
error = "No new tab found"

0 commit comments

Comments
 (0)