← Back to team overview

xpresser-team team mailing list archive

Re: Xpresser image accuaracy

 

As an aside
if I use:

#!/usr/bin/python

from xpresser import Xpresser
xp = Xpresser()
import time

def main():

xp.load_images('/home/afonit/Documents/work/Amdocs/Amdocs/custom_coded_projects/Xpresser/coordinates')
    xp.click('top_left')
    print("found it")

if __name__ == "__main__":
    main()


I can get it to recognize with:
similarity = 0.40
rather than the
similarity = 0.20
in the other script.


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