Re: [Sikuli-driver] [Question #677380]: scroll down a page with findAll list

2019-01-08 Thread Marc Summers
Question #677380 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677380

Status: Needs information => Solved

Marc Summers confirmed that the question is solved:
Oh,  OK, I see what you mean.
And Yes, I forgot the wheel down.

But I need to wheel down a PAGE at a time
not just wheel(WHEEL_DOWN, 1)

So I will give that a try and see what happens.
It may take me some time to do this as I am
busy working on something else right now.

But I think wheeling down a page at a time
and not just one section of a page will fix
the problem.

Thanks for  your help.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #677380]: scroll down a page with findAll list

2019-01-08 Thread Manfred Hampl
Question #677380 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677380

Status: Open => Needs information

Manfred Hampl requested more information:
Which part of your code should result in scrolling down to the next
page?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #677380]: scroll down a page with findAll list

2019-01-08 Thread Marc Summers
Question #677380 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677380

Marc Summers gave more information on the question:
This is what I tried, but the problem is that 
it acts like the first list from findAll is still
there, meaning that the findAll outside the loop
the first one that runs, sets up a list, but the
second findAll inside the for loop, does not appear
to overwrite the first one, so when I try to click the
more button, it is clicking in the wrong place.
I also tried   tbuttsorted = 0   trying to clear the
sorted list, but that did not work either.

tbutt = 0
tbuttons = list(findAll("morebutton.png"))
print "I Found ",len(tbuttons)," matches"
tbuttsorted = sorted(tbuttons,key=lambda m:m.y)

for tbutt in tbuttsorted:
print "Going to click this more button"
hover(tbutt)
mouseDown(Button.LEFT)
mouseUp(Button.LEFT)
sleep(1)
try:
find(Pattern("ordercodedmg290.png").similar(0.99))
print "Found Order Code DMG290"
print "I am going with this one ", tbutt
mouseDown(Button.RIGHT)
mouseUp(Button.RIGHT)
mouseDown(Button.LEFT)
mouseUp(Button.LEFT)
break
except FindFailed:
print "Did NOT Find Order Code DMG290"
print "Going to try the next more button"
mouseDown(Button.RIGHT)
mouseUp(Button.RIGHT)
mouseDown(Button.LEFT)
mouseUp(Button.LEFT)

sleep(5)
tbuttons = list(findAll("morebutton.png"))
 print "I Found ",len(tbuttons)," matches"
 tbuttsorted = sorted(tbuttons,key=lambda m:m.y)
 sleep(5)

hover(tbutt)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #677380]: scroll down a page with findAll list

2019-01-08 Thread TestMechanic
Question #677380 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677380

TestMechanic posted a new comment:
Post the new code here. Unfortunately  even if we get this right I am
guessing one more problem :-).  But lest go step by step ...

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #677380]: scroll down a page with findAll list

2019-01-07 Thread Marc Summers
Question #677380 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677380

Status: Answered => Open

Marc Summers is still having a problem:
I tried a second findAll at the bottom of the loop after the 
print "Going to try the next more button" 

but I could not get it to work.

I was hoping that you had a suggestion as to 
how to insert the second findAll  ?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #677380]: scroll down a page with findAll list

2019-01-07 Thread TestMechanic
Question #677380 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677380

Status: Open => Answered

TestMechanic proposed the following answer:
I do not see where is your second findAll. Your first findAll is outside the 
loop.
So you are never updating find result after the first page

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp