xpresser-team team mailing list archive
-
xpresser-team team
-
Mailing list archive
-
Message #00036
Re: Xpresser image accuaracy
On Thu, Jul 25, 2013 at 4:41 PM, Chris Gagnon <chris.gagnon@xxxxxxxxxxxxx>wrote:
> I have not run into your similarity issue, what desktop environment are
> you using? can you create a tarball with your code and pictures?
>
I am on fedora 19
environment:
uname -a
Linux localhost.localdomain 3.9.9-302.fc19.x86_64 #1 SMP Sat Jul 6 13:41:07
UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
>
> are you using xp.wait("image-name")?
>
yes
Here is the code:
#!/usr/bin/python
from xpresser import Xpresser
import time
def main():
xp = Xpresser()
xp.load_images('/home/afonit/Documents/work/Amdocs/Amdocs/custom_coded_projects/Xpresser/coordinates')
xp.click(535,487) #username
time.sleep(1)
xp.type('jared.thompson@xxxxxxxxxx')
xp.click(535,511) #password
time.sleep(1)
xp.type('Pigd9#0ij23I89273251')
time.sleep(1)
xp.click(530,587) #login
xp.wait('top_left',50)
print("found it!")
xp.sleep(3)
xp.click(908,300) #clicks of 'status-message' if it is present
#xp.click(1338, 133) #logout
if __name__ == "__main__":
main()
the image ( I have tried many, but here is one) is attached.
Attachment:
top_left.png
Description: PNG image
Follow ups
References