sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #00419
Re: [Question #141157]: How to get a search results page e.g. with google
Question #141157 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/141157
Status: Open => Answered
RaiMan proposed the following answer:
since Sikuli automates mouse and keyboard actions together with locating
visual objects on the screen, you just have to turn a manual workflow,
you are using into a Sikuli script.
--- example Windows / Firefox
openApp("path to firefox")
wait(5) # give enough time
type("l", KEY_CTRL) # to position in address field
paste("google.com")
wait("image-of-google-logo", 10) # wait for google page
paste("sikuli") # enter search text
type(Key.ENTER)
to find more about the commands: http://sikuli.org/docx/
If you want to have more programmed access to the page contents of a
results page, you have to use the standard Python features to run http
requests and use the results (-> Python doc)
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.