Skip to content

Commit 8d6412f

Browse files
committed
[py] Fix number_of_windows_to_be expected condition to check the number of windows
1 parent c9ecf8b commit 8d6412f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/selenium/webdriver/support/expected_conditions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def __init__(self, num_windows):
293293
self.num_windows = num_windows
294294

295295
def __call__(self, driver):
296-
return driver.window_handles == self.num_windows
296+
return len(driver.window_handles) == self.num_windows
297297

298298

299299
class new_window_is_opened(object):

0 commit comments

Comments
 (0)