I’m trying to perform a “Control Window” on an application with the following name :
Session Manager - bzw2h
Please note there are two spaces on either side of the hyphen.
Using the name directly gives an error:
Open Unix
Control Window name:Session Manager - bzw2h
gives the following error:
[FAIL INSIDE] ValueError: Argument ‘wait_time’ got value ‘bzw2h’ that cannot be converted to float or None.
Passing the name into a variable first does not work. “Session Manager - bzw2h” becomes
“Session Manager - bzw2h” and the locator will not find the window.
Before the string is passed into the variable there are two spaces on either side of the Hyphen. Afterwards there are only one spaces on either side of the hyphen.
*** Variables ***
${window_title} Session Manager - bzw2h
*** Tasks ***
Open Unix
Control Window name:${window_title}
[FAIL INSIDE] WindowControlError: Could not locate window with locator: ‘name:Session Manager - bzw2h’ (timeout: 10)
I have also tried to use regex and it does not work:
Open Unix
Control Window name:regex:.*Session Manager*
[FAIL INSIDE] WindowControlError: Could not locate window with locator: ‘name:regex:.Session Manager’ (timeout: 10)
Is the above not working because of a bug? Why does the keyword “Control Window” think “bzw2h” is the time out parameter rather than a part of the string encapsulated by the double quotes?