Skip to content

Commit

Permalink
code examples formatted with python
Browse files Browse the repository at this point in the history
  • Loading branch information
bandophahita committed Feb 8, 2024
1 parent 66b77b4 commit 9e3b236
Showing 1 changed file with 30 additions and 10 deletions.
40 changes: 30 additions & 10 deletions docs/deprecations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,57 +23,77 @@ for the following boolean arguments.

:class:`~screenpy_selenium.actions.enter.Enter`

Before::
Before:

.. code-block:: python
the_actor.will(Enter("foo", True).into_the(PASSWORD))
After::
After:

.. code-block:: python
the_actor.will(Enter("foo", mask=True).into_the(PASSWORD))
:class:`~screenpy_selenium.actions.hold_down.HoldDown`

Before::
Before:

.. code-block:: python
the_actor.will(Chain(HoldDown(None, True))
After::
After:
.. code-block:: python
the_actor.will(Chain(HoldDown(None, lmb=True))
the_actor.will(Chain(HoldDown(lmb=True))
:class:`~screenpy_selenium.actions.release.Release`
Before::
Before:
.. code-block:: python
the_actor.will(Release(None, True))
After::
After:
.. code-block:: python
the_actor.will(Release(None, lmb=True))
the_actor.will(Release(lmb=True))
:class:`~screenpy_selenium.questions.selected.Selected`
Before::
Before:
.. code-block:: python
the_actor.shall(See.the(Selected(TARGET, True), IsEmpty()))
After::
After:
.. code-block:: python
the_actor.shall(See.the(Selected(TARGET, multi=True), IsEmpty()))
:class:`~screenpy_selenium.questions.text.Text`
Before::
Before:
.. code-block:: python
the_actor.shall(See.the(Text(TARGET, True), IsEqual("foo"))
After::
After:
.. code-block:: python
the_actor.shall(See.the(Text(TARGET, multi=True), IsEqual("foo")
Expand Down

0 comments on commit 9e3b236

Please sign in to comment.