forked from ScreenPyHQ/screenpy_selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding deprecation documentation for boolean positional keyword argum…
…ents
- Loading branch information
1 parent
0dbaf38
commit 66b77b4
Showing
3 changed files
with
83 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
============ | ||
Deprecations | ||
============ | ||
|
||
This page documents | ||
the major deprecations | ||
in ScreenPy Selenium's life, | ||
and how to adjust your tests | ||
to keep them up to date. | ||
|
||
4.1.0 Deprecations | ||
================== | ||
|
||
Boolean Positional Arguments Deprecation | ||
---------------------------------------- | ||
|
||
The following class constructors | ||
have been marked deprecated | ||
when using a positional boolean argument in the constructor. | ||
Starting with version 5.0.0 | ||
you will be required to provide keywords | ||
for the following boolean arguments. | ||
|
||
:class:`~screenpy_selenium.actions.enter.Enter` | ||
|
||
Before:: | ||
|
||
the_actor.will(Enter("foo", True).into_the(PASSWORD)) | ||
|
||
After:: | ||
|
||
the_actor.will(Enter("foo", mask=True).into_the(PASSWORD)) | ||
|
||
|
||
:class:`~screenpy_selenium.actions.hold_down.HoldDown` | ||
|
||
Before:: | ||
|
||
the_actor.will(Chain(HoldDown(None, True)) | ||
|
||
After:: | ||
|
||
the_actor.will(Chain(HoldDown(None, lmb=True)) | ||
the_actor.will(Chain(HoldDown(lmb=True)) | ||
|
||
:class:`~screenpy_selenium.actions.release.Release` | ||
|
||
Before:: | ||
|
||
the_actor.will(Release(None, True)) | ||
|
||
After:: | ||
|
||
the_actor.will(Release(None, lmb=True)) | ||
the_actor.will(Release(lmb=True)) | ||
|
||
|
||
:class:`~screenpy_selenium.questions.selected.Selected` | ||
|
||
Before:: | ||
|
||
the_actor.shall(See.the(Selected(TARGET, True), IsEmpty())) | ||
|
||
After:: | ||
|
||
the_actor.shall(See.the(Selected(TARGET, multi=True), IsEmpty())) | ||
|
||
|
||
:class:`~screenpy_selenium.questions.text.Text` | ||
|
||
Before:: | ||
|
||
the_actor.shall(See.the(Text(TARGET, True), IsEqual("foo")) | ||
|
||
After:: | ||
|
||
the_actor.shall(See.the(Text(TARGET, multi=True), IsEqual("foo") | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,4 @@ to :class:`~screenpy_selenium.abilities.BrowseTheWeb`! | |
extended_api | ||
targets | ||
cookbook | ||
deprecations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters