[Error] Find Failed

Asked by Nicolas Touma

Hello,

I'm using Sikuli IDE 1.0.1
I want to automate the testing of one of my websites.
So far i can open a browser and go the the URL i want.
the website is: www.bathfitter.com
And i want to click on: Design your own Bathroom
I have 3 questions for whoever can help me.

1) I want to click on a link on my webpage. I'm using the "click()" option in the mouse Actions tools but i keep getting:
[error] FindFailed
I tried using the tool "Find()" but it seems that i always got the same error.

2) I just want to confirm that using the commands: Find, Type, click i can test flash on the website.

3) Once the script is functioning, is there a way to make a sort of batch file that would run automatically and on its own on a server every day at 4:00 am??
For my Selenium tests i use C# and i just run the .exe file with windows task scheduler. I was wondering if that is possible with Sikuli.

I really appreciate your help.

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
Nicolas Touma (nikitomas) said :
#1

openApp("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe")
wait(2)

paste('http://www.bathfitter.com/bathroom-design-tool/' )

type("\n")

wait(4)

click("1428688216715.png") # the number is replaced by the picture i want to click on

Revision history for this message
Nicolas Touma (nikitomas) said :
#2

Above is the code i have so far. FYI, i started Sikuli today so please excuse any silly questions from my part.

Thanks again

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

How to run scripts from command line:
http://sikulix-2014.readthedocs.org/en/latest/faq/010-command-line.html

the relevant command, to integrate a run into batch files is:
jave -jar <path-to>\sikulix.jar -r thescript.sikuli

Can you help with this problem?

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

To post a message you must log in.