Wizlink tutorial – how to use “Web application controls” Part 2

Wizlink tutorial – how to use “Web application controls” Part 2


Now let’s create scenario to allow robot do, what you’ve just done Let’s use ‘Sequence’, so your activities will be better organized Connect it with the Start Node and double click on it What has to be done first? ‘Run browser’ of course Drop it on the sequence This activity has 2 necessary fields. First one is how you will refer to your browser window in other activities URL is link to your website Make a variable, where you will store link to your site, it’s String of course type it in the URL field, without the quotation mark of course because it’s the name of variable Let’s name your browser window ‘taxes’ Your first activity on site was to click on ‘Sprawdź NIP’ so put the ‘Click’ Activity below ‘Run Browser’ You have to give this activity the name of your browser window, because you can have more than one running Now you have to tell the robot, where to click To do that, drag the control which represent the button you want the robot to click in and drop in on the ‘Click’ activity Green spot means, that this activity don’t need more data Now robot needs to tap the tax number in the field So put a ‘Set text’ activity in your sequence tap ‘taxes’ in the field and tell the robot, where it should set text Drag the control which represents text field and drop it on activity Go to properties section and give a text, which robot should set in the text field Because String is needed, put the text in quotation mark Click OK to confirm changes, now you have no error Let’s make another Click procedure, this time in “Sprawdź” button. ” icon represents button in controls Let’s check, what text appeared To do that, use ‘Get text’ tap the browser name Let’s tell the robot, from where it should get the text Place the right control on the activity Make a variable, where you will store the loaded text, it will be a String Put the name of this variable in the Text Output property of ‘Get text’ activity Show gotten text on the screen using ‘ShowMessageBox’ Click next to activities to confirm changes Let’s test your robot! Perfectly, now you know how to use the web controls

Leave a Reply

Your email address will not be published. Required fields are marked *