Skip to content

Commit

Permalink
Merge pull request #508 from hakonhagland/doc_click
Browse files Browse the repository at this point in the history
qtbot.click() does not exist?
  • Loading branch information
nicoddemus committed Jul 19, 2023
2 parents 2f2f757 + 9839728 commit 0518ca0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pytestqt/qtbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,9 @@ def captureExceptions(self):
.. code-block:: python
with qtbot.capture_exceptions() as exceptions:
qtbot.click(button)
qtbot.mouseClick(
button, QtCore.MouseButton.LeftButton # for PyQt6
) # ... or QtCore.LeftButton in PyQt5
# exception is a list of sys.exc_info tuples
assert len(exceptions) == 1
Expand Down

0 comments on commit 0518ca0

Please sign in to comment.