can't change position of a slider in system preferences.app
Hi,
I am trying to write a script to change the computer sleep time to "Never" so that when I am downloading something, it doesn't stop because the computer went to sleep.
Here's what I have (the pictures don't show up):
click( )
click( )
click( )
click( )
t = find(Computer Sleep picture)
dragDrop(t,picture of never)
It does open the system preferences, does click on power adapter (needs three clicks for some reason), but it does not change the position of the slider.
When I run it, I get this error:
[sikuli] [Error] source lineNo: 5
[sikuli] [Error] Traceback (innermost last):
File "/var/folders/
AttributeError: 'NoneType' object has no attribute 'right'
How can I fix this?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask eytan for more information if necessary.