← Back to team overview

sikuli-driver team mailing list archive

[Question #478080]: How to deal with getting text from dynamic bubble region

 

New question #478080 on Sikuli:
https://answers.launchpad.net/sikuli/+question/478080

Hi, I am trying to automate a chat application. For capturing text from the message bubble i am using below mentioned code.

count=0 

messageBubbleRegion = Region(1125,971,205,36).find("1487823213807.png")
while not exists("1487733279602.png"):
    messageBubbleRegion.above(count)
    click (messageBubbleRegion)
    print messageBubbleRegion.getScreen()
    count=count+46
    wheel(WHEEL_UP,1)
    print messageBubbleRegion.text().strip()

from the above code i am trying to move region upwards and capture the text in the new region.

But i am always getting same text in the ide console until the screen starts scrolling upwards that too some times text is not copied correctly.

Kindly help me out in this. Thanks

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