Could you advise how can I select window by name, which is contained in variable?

Name of window generates ramdom and this value exists in my ${addressId} variable.

I tried to use:

Select Window    ${addressId}

but it doesn't work. I have got NoSuchWindowException. Any ideas how to switch windows?

  • how is the name genereated? Are you certain that this generated name is something that the select window will accept (title, name, url, etc)? – Bryan Oakley Sep 11 '17 at 14:07
  • yep. it is a string with id, which is a title of window – Yulianna Kovalenko Sep 15 '17 at 7:31

The way you are doing it is correct. The logical explanation is that ${addressId} doesn't match any window titles. You can use Get window titles in your test to see what robot thinks the window titles are, and then you can log ${addressId} to see if it matches any of them.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.