Skip to content

Commit 0020946

Browse files
laulazombre42
authored andcommitted
1 parent f995afa commit 0020946

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGES.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ Release Notes
1818
prefix 'partial link'.
1919
[lina1]
2020

21+
- Fixed issue where 'Select Window’ with url strategy fails to locate window
22+
[laulaz]
23+
2124
1.5
2225
---
2326
- Copy Desired Capabilities before modifying to prevent affecting future

src/Selenium2Library/webdrivermonkeypatches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def get_current_window_handle(self):
2121
return self.current_window_handle
2222

2323
def get_current_window_info(self):
24-
atts = self.execute_script("return [ window.id, window.name, document.title, document.url ];")
24+
atts = self.execute_script("return [ window.id, window.name, document.title, document.URL ];")
2525
atts = [ att if att is not None and len(att) else 'undefined'
2626
for att in atts ]
2727
return (self.current_window_handle, atts[0], atts[1], atts[2], atts[3])

0 commit comments

Comments
 (0)