1

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?

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

1 Answer 1

1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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