sikuli pick a link in the page

Asked by henry

new hand on sikuli, found it very interest and powerful!

how do I pick http links in a region that I defined? Assume those links all have underline blew the phrase. For example, pick a few links in the google search result page.

Thanks!

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Not possible with Sikuli.

More a job for Selenium, which can be combined with Sikuli in many ways.

Revision history for this message
henry (henry11) said :
#2

Thanks for replying RaiMan.

I had an internal search project and needs to be tested, I wanted to test some visual elements so sikuli is perfect. I also like to test those search results and click through to make sure there is no dead link.

Could you point me some documentations/material on how to combine Selenium with Sikuli?

Revision history for this message
RaiMan (raimund-hocke) said :
#3

The easiest way is to use the Java API for Selenium, since this can be used directly from Sikuli scripts, since Sikuli scripts are run by Jython. Any Java class on the class path can be imported and used with Python language.

If you are not yet familiar with Selenium or even Java, then you have to decide, wether the effort makes sense.
For hints how to set things up, look for "Selenium" in this question board, in the net with "Selenium"+"Sikuli".

Another possibility would be to take the links from the webpage's source and check them using the url get features of Python.

Revision history for this message
henry (henry11) said :
#4

Thank you.

Can you help with this problem?

Provide an answer of your own, or ask henry for more information if necessary.

To post a message you must log in.