3-2. Record tasks to be performed when conditions not match
This section explains how to record tasks to be performed when conditions not match.
* You will provide an explanation using the BOT created in "3-1. Record tasks to be performed when conditions match" .
If this BOT does not exist, please refer to the "3-1. Record tasks to be performed when conditions match" page and create the BOT.
Create a BOT
1. Open the BOT editor from the Edit button.
Select the "3-1. Record tasks to be performed when conditions match" BOT you created, click the "Edit" button to open the BOT editor.
A modal will appear to set the input value to be used in this edit. Change the age to 10 and click the "OK" button.
2. Recording tasks for when conditions do not match
Click the "Record browser operations" button, then click "End of condition" in the task column.
Click the "Add a mismatch condition" button.
A Mismatch condition will be added to the task.
Move the task cursor inside a Mismatch condition.
Click above (between the tasks) "Task can be added here."
When a confirmation alert appears, click the "OK" button to move the task location.
The task cursor will be moved within a Mismatch condition.
Anything recorded inside this will only be executed if it does not match the condition you set.
If you want to move a task cursor within a Mismatch condition, the current state of the BOT editor must mismatch the condition you have set.
"Age: 12 years or older"
Since these are not met, the task cursor can be moved inside a Mismatch condition to record the operation.
Record the operation of clicking the "Child" button.
As the screen transitions, please record the displayed amount as the fee.
This time, change the "Destination data" and specify the "fee".
The recording of tasks to be executed when a Mismatch condition occur is now complete.
3. Return task to initial position and execute again
Click "Stop" in the top left corner of the task menu to halt the virtual browser. This action returns the task cursor to the beginning.
Click "Start" in the top left corner of the task menu to advance the task to the end.
Currently, the "Age" data value is set to "10" in the previous step.
"Age: 12 years or older."
There is a mismatch with the condition, from the previous step, so all recorded task executions, including the mismatched conditional task, can be confirmed.
4. Save the BOT
Change "BOT Name" to 3-2. Record tasks to be performed when conditions not match.
Since you changed the "Age" value in the previous step, you will get a warning message "There is a difference between the BOT internal data and the data being edited.". Click the "OK" button to save the data.
Execute BOT
1. Execute the created BOT
Select the created BOT and open the execution screen.
Click the "Start" button without changing the initial values of "Name" and "Age," which are set as input data as John Smith and 20, respectively.
When the BOT execution completes, the results of the execution are displayed.
"The BOT has successfully completed." and confirm that the fee is displayed as "Adults $8".
Close the execution result screen.
Select the created BOT again and open the execution screen.
This time, change "Name" and "Age" to Jane Doe and 10 respectively, and click the "Start" button.
When the BOT execution completes, the results of the execution are displayed.
"The BOT has successfully completed." and if the fee is displayed as "Child $4", it is complete.
This concludes the tutorial "3-2. Record tasks to be performed when conditions not match".