MarketSquare / SwingLibrary

Swing UI testing library for Robot Framework
Other
113 stars 68 forks source link

Keyword to determine if a window is open #100

Closed nathanwonnacott closed 6 years ago

nathanwonnacott commented 7 years ago

I think that this library would benefit from a keyword used to determine if a window is open. Note that I'm not asking for a keyword that causes a failure if a window doesn't exist, but rather one that returns a Boolean so that it can be used in an if statement.

An alternative would be a keyword that returns a list of all open windows so that they can be checked manually.

badari412 commented 6 years ago

@nathanwonnacott I think we already have a keyword to get a list of all the open windows. Go thru this link: List Windows. Using this you can write your own keyword which returns a boolean value. Also you can make use of the keywords viz. Select Window etc. to do the same.

nathanwonnacott commented 6 years ago

@badari412 You're right. I think it would still be sort of nice as a built in keyword, but since there is a reasonable workaround, I'll go ahead and close the issue.