Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mouseClickWithWait and mouseClickWithButtonAndWait #111

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

53845714nF
Copy link
Contributor

I create two new functions, mouseClickWithWait and mouseClickWithButtonAndWait.
These functions wait that an Element exist and then click. It saves the wait commands that would otherwise have to be made.

from xmlrpc.client import ServerProxy

session = ServerProxy('http://localhost:9000')

session.mouseClickWithWait('mainWindow/buttonImage', 400)
session.mouseClickWithButtonAndWait('mainWindow/buttonImage', 1,  400)

mouseClickWithWait have two parameters, the first the path and the second the timeout.
mouseClickWithButtonAndWait have the path, the mouse key and the timeout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant