|More wait conditions [message #1767722]
||Mon, 10 July 2017 10:27
| Aparna Argade
Registered: October 2010
SWTBot already has many wait conditions. The Conditions code is extensible and we can have custom conditions. I have implemented following additional wait conditions for my requirements- |
Sometimes it's difficult to predict exact number of rows, so TableHasRows cannot be used.
There can be cases where the table can be assumed to be valid if it displays some minimum rows (as a header). Mostly initial background processing takes time. But after the table displays initial lines, the rest of the data appears appears quickly.
2. WidgetHasMinimumRows (can be used for SWTBot Table, NatTable, Tree, TreeItem, etc. by using java reflection for rowCount()). If this is in place then TableHasMinimumRows is not required.
3. WidgetHasMinimumLines (can be used for Editor,StyledText by using reflection for LineCount())
4. LabelHasValue (e.g. to test Progress/status in 'Progress Information' dialogs).
Do you think that the above conditions could be commonly used by the community?
If yes, I would like to contribute.
Powered by FUDForum
. Page generated in 0.01829 seconds