clicking on unknown hyperlinks or checkboxes

Asked by Bhanu Sree Balisetty

I am new to sikuli automation
I wanted to know how to click on unknown hyperlinks or check boxes.
Image of any hyperlink can be captured and clicked only when we the link for sure.
if the hyperlink is dynamic and every time we run the script we need to click on new hyperlink, how is this possible in sikuli???
For example, In my case I have a web page and there are list of names and checkboxes beside each name
and I should click on a check box beside any one person's name(person's name comes as input) How do I do it????
Pls help..

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
Roman Podolyan (podolyan-roman) said :
#1

If I correctly understand how it looks (well, I can just imagine it until you provide some image),
you need
1) Raise MinSimilarity setting high enough , like to 0.9
2) Restrict searching / clicking to some region where checkboxes appear
3) Put clicking code in a loop
4) Every time code finds -=empty checkbox=- in the region, it clicks it empty checkbox
5) When code cannot find any empty checkbox anymore , loop exits.

If my explanation is not that clear, I'll provide example code later, using some public webpage (if you can find similar webpage to try the idea, you can post a link here).

Revision history for this message
Bhanu Sree Balisetty (bhanub2406) said :
#2

Thanks for the response.
Let me give an example of my problem.
If u want to create an automation to 'add friends' on facebook.
In the facebook under friend request tab.
there will be 'profile names' and beside them will buttons for 'Confirm' and 'Delete Request'.
In my program for example the profile name comes as input and I should confirm the person's request automatically.
In this case since the profile name comes as input I should be able to find that person's name and click on the button beside it.
The problem here is the 'text search'. Text search is not working for me.
In case of images it is possible to set offset and click on some button beside it.
Is the same possible with 'text search'?????

Revision history for this message
Roman Podolyan (podolyan-roman) said :
#3

Sorry, I have no experience with Sikuli text search. Can't help with it.

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

If it is in the browser (web app), you might try with Selenium, if the SikuliX text features are not working for you.

Revision history for this message
Cam (ccreynolds2015) said :
#5

I have found that incorporating Vimium chrome add on or VimFX for firefox both help SikuliX get stuff done in browsers fairly fast. You may want to look into one of those two. They both work nearly the same.

Can you help with this problem?

Provide an answer of your own, or ask Bhanu Sree Balisetty for more information if necessary.

To post a message you must log in.