docs: Calling method with '()' causes Error
Calling method with '()' causes Error:
Traceback (most recent call last):
File "<pyshell#37>", line 1, in <module>
print(driver.current_window_handle())
TypeError: 'str' object is not callable
MODIFY
commands-yml/commands/web/window/get-handle.yml
commands-yml/commands/web/window/get-handle.yml
@@ -8,7 +8,7 @@ example_usage:
String windowHandle = driver.getWindowHandle();
python:
|
- window_handle = self.driver.current_window_handle()
+ window_handle = self.driver.current_window_handle
javascript_wd:
|
let windowHandle = await driver.windowHandle();

docs: Calling method with '()' causes Error (#14832)

Calling method with '()' causes Error:
Traceback (most recent call last):
  File "<pyshell#37>", line 1, in <module>
    print(driver.current_window_handle())
TypeError: 'str' object is not callable