← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #229444]: Why Key.ENTER doesn't work?

 

Question #229444 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/229444

    Status: Answered => Open

Serginho is still having a problem:
In the LOOP!!!
NOT WORKING!!!

    @staticmethod
    def click_green_arrow():
        if exists(IMG_FIREFOX_GREEN_ARROW):
            click(IMG_FIREFOX_GREEN_ARROW)

    @classmethod
    def load(cls, url):
        app.focus()
        #firefox_shortcuts.Miscellaneous.select_location_bar()
        cls.click_location_bar()
        wait(1)
        common.clear_field()
        type(url)
        type(Key.ENTER)
        wait(5)
        cls.click_green_arrow()
        wait(1)

After that... Even if there is NO green arrow it clicks exactly the
location of green arrow => this is a yellow star => and tries to type
text. How or how it could be if it must click only if the image exist?

After that  press <Alt> + <D> has become unstable. Working on it. Will
be the next question how to click a little bit to the right of founded
image.

    @staticmethod
    def click_location_bar():
        if exists(IMG_FIREFOX_HOME):
            # 170, 60
            target = find(IMG_FIREFOX_HOME)
            # 370, 60
            target = target.right(200)
            click(target)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.