BluePrism - Working with Diff Components || Reality & Useful
Автор: Reality & Useful
Загружено: 2017-09-09
Просмотров: 6590
Описание:
Hi Friends,
Now We will discuss with different components in HTML how to operate or control it.
------------------------------------------------------------------------------------
For this example I am taking the Facebook create Account form.
Here we have Drop Down boxes and radio buttons and input text boxes.
1. I have created the business object for this Facebook.
2. Let's spy the elements one by one
3. First we will spy the First Name input Box. Before going to that we need to
configure it in Application Modular.
On Highlighting the box, use ctrl+left mouse click to choose the element.
If you want to cancel the highlighted element and spying use ctrl+right mouse click to
cancel the spying mode.
My spying is correct element only.
4. Let's spy the password input box.
5. Let's spy the drop down boxes of date of birth
6. Let's spy the radio buttons
Now we are ready with elements.
Let's write the data into input boxes First Name and Password
For this take two data items.
7. Use Write stage to write data into input boxes
Let's link the stages and run it.
Sorry, we are not launching the website. Let's do that using Navigation Stage
Bot is failed with the following internal error message.
"Internal : Failed to perform step 1 in Write Stage 'Write First Name' on page 'Action
1' - No elements match the supplied query terms"
It means, unable to find the First Name element, because the website will take sometime
to load, but our bot will try to write the data into first name before it loads on
browser.
What we need to do is use the Conditional wait till the first name should
existed on browser.
Let's implement in bot how to achieve this.
8. Use Wait stage for this after the launch.
I am checking the first name is existed or not. If existed Bot will continue
to write data. Other wise Bot will end the flow or just throw the exception.
It wrote the data into first name and password but seems not properly done it.
because Facebook having scripts or events on fields.
Let's focus on the input boxes and write it again.
Before that will observe again
Observe the date is written on top layer of input box.
What I did is using Navigate stage I am focusing the input text fields.
let's run and check it
ok, Let's continue with selecting the Birthday.
9. Use navigate stage to select the items from drop down.
when we use select date in navigate stage, we can see the option 'Select Item'
Use it and pass the values either index base or text base.
I am using text base
we got error because I am selecting the month with number format but the list box
having text base months. That's why value not matching. Let's change it to month name
Our required date is selected.
Now based on the Month I am going to select the Male or Female.
Like, If the month is April then I will select Male otherwise select Female.
10. Use decision box for checking the month. I will use Data Item for month storage
Now I will check the month using decision stage.
11. Use Navigate stage to check the radio button
I used 'Set Checked' Action and for the Checked parameter passing the True.
Now I will change the Month to Jan and check
Thanks for watching video
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: