Hello,
Regarding your question about first run, possibly the webpage takes time to load fully hence the control does not exists while executing If condition. We can specify time duration i.e. how long to wait for condition to be true with If command. You can specify the maximum time in the wait box and if the condition is satisfied earlier then it won't wait for the entire duration specified, it works as an intelligent delay. We have attached amended task.
For 'If Variable' example, open help manual for 'If-Else-Endif ' then click on 'Example' link on top-right corner. In that, read Example four (Create a task that prompts the user for a value, and if the user types “STOP,” the task stops.)
Hope that helps.
|