Emojis, wait, and continue in case of error

Asked by jatin

Hi, please help me with the below:

1) How to include the emojis (πŸ˜…πŸ™) in type() block? I tried writing them but it exits with an error.

2) I want to insert a delay of let's say 5 sec between click() and wait() block. How I can do it?

3) I have below order of events:

 step 1: Click a tab in chrome

 step 2: click something on the page

 step 3: fill something on the page

 step 4: repeat

I am using a For Loop for automation. Now there may arise a random error so if that happened the code just exits. I want it to behave like this: if there is an error just reload the page and start from the beginning i.e Step 1, no matter what step caused the error. If I can do this, it will make my system fully automated.

Thank you for any suggestions.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
jatin
Solved:
Last query:
Last reply:
Revision history for this message
jatin (mrjatinkashyap) said :
#1

my second and third questions were answered in youtube official tutorials 4 & 5. but I am still looking for an emojis solution.

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

See https://sikulix-2014.readthedocs.io/en/latest/region.html#Region.type and try
paste(unicd("πŸ˜…πŸ™"))
instead of type()