-
Notifications
You must be signed in to change notification settings - Fork 785
Closed
Description
How to locate windows is pretty complicated and not very well documented. There are also lot of undocumented and untested features. This issue covers cleaning up the functionality and, very importantly, documenting it adequately.
As part of the cleanup, undocumented features that are not considered useful are deprecated or removed. Such changes are obviously backwards incompatible, but because these are undocumented features, it's very unlikely that they are used widely. This is the functionality that is going to change:
- Using Python
Noneor stringnullor empty string as a locator to select the main window is deprecated. Use documentedmain(default) instead. - Using
popupto select the latest new window is deprecated. Use documentednewinstead. - Using
selfto select the current window is deprecated. Use earlier undocumented but much more explicitcurrentinstead. - Locating windows by name, title or URL is not case-insensitive anymore.
- Specifying explicit locator strategy is not case-insensitive anymore.
There area also some enhancements:
- New keyword
Get Window Handlesis added to replaceList Windowslater. The old keyword is "silently deprecated" at this point. - Explicit locator strategy can be specified using
strategy:valuesyntax in addition tostrategy=value(see also Newstrategy:valuesyntax to specify locator strategy in addition to currentstrategy=value#908).
Reactions are currently unavailable