-
Notifications
You must be signed in to change notification settings - Fork 29
Description
This feature request (well more a suggestion) is aimed primarily at the Click * Image and Does Exist keywords.
This feature would make imagehorizonlibrary behave more similarly to SeleniumLibrary and BrowserLibrary in that they both have a timeout waiting for the element to exist rather than failing immediately if the element is not already on the screen. I believe this change would make imagehorizonlibrary more user friendly especially to people new to this library.
My proposed solution would be simply to replace the self.locate with self.wait_for in the Click Image functions and probably also the Does Exist function. An optional timeout argument would be added to be passed to the wait_for function, this would be by default be set to 0 so that the current behaviour of these keywords is unchanged.
Obviously Issue #60 would need to be fixed first for this to work.
If this feature is also included on the locate keyword function it would make wait for redundant, not sure if that is a good or bad thing, but there is the possibility of consolidating those two.
An additional a keyword for set default timeout could also be added to change the default timeout from 0 to a value that the user chooses.