xpresser-team team mailing list archive
-
xpresser-team team
-
Mailing list archive
-
Message #00038
Re: Xpresser image accuaracy
What are you using to take your screenshot? I always use "gnome-screenshot
-a" If you are saving the file and cropping it then re-saving the file it
will change when using lossy compression.
On Thu, Jul 25, 2013 at 5:46 PM, jared <afonit@xxxxxxxxx> wrote:
>
>
>
> 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.
>
Follow ups
References