Skip to content

Commit 41f245e

Browse files
yo-gaaaltat
authored andcommitted
Fix that the alias of the closed browser isn't deleted
Signed-off-by: Jia-wei Yu <art96962006@gmail.com>
1 parent 310f8a5 commit 41f245e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SeleniumLibrary/keywords/webdrivertools/webdrivertools.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,9 @@ def close(self):
337337
if self.current:
338338
driver = self.current
339339
error = self._quit(driver, None)
340+
for alias in self._aliases:
341+
if self._aliases[alias] == self.current_index:
342+
del self._aliases[alias]
340343
self.current = self._no_current
341344
self._closed.add(driver)
342345
if error:

0 commit comments

Comments
 (0)