14-10-24 10:45 AM - edited 14-10-24 10:54 AM
Hi Team, Please I'm currently working on my advanced consolidation exercise and have encountered a roadblock. My process runs successfully the first time, but during the second **GET NEXT ACTION PHASE**, it logs out of the application and logs back in to perform the second work item, which seems inefficient.
According to **Blue Prism Advanced Consolidation Exercise solution 2.9 Scenario 9** on **Dynamic Path Elements** and Blue Prism Advanced Consolidation Exercise 3.3.2 Scenario 9 – Dynamic Path Elements, this issue might be resolved by using a dynamic path element. The required element type should be **HTML Element**, but when I switch to **Application Modeller**, I can't find the HTML Element option. I’ve tried using **Browser Mode**, and while I successfully highlighted the needed element, it isn’t dynamic as expected.
I need assistance in spying a new element that uses only the **Path attribute** so that I can use this element to replace the original elements in the **Navigate stages** that clicks on any of the five menu items. I feel like I’m missing something essential, so I would greatly appreciate your guidance in resolving this challenge.
Answered! Go to Answer.
14-10-24 12:07 PM
Hi @blazino17
Based on the screenshot you made dynamic selector for web value but you are still using path as well, IN order to select the dynamic value unselect the path and use attributes like match index, Tag Name, web text or web target address check which one is the best suitable for you.
Since Path is dynamic value for each of teh radio button it might be the reason it is not able to select it.
if you want to select based on path.
You need to make dynamic selection for WebPath/XPath in APp Modeller
In app Modeller spy all the radio buttons in the screenshot. Identify dynamic values it might be both rows and columns in path or it may be just one of them
Once you identify the position in html path . Create one or two variables based on the dynamic values whether it is row or column or both.
1) Copy the whole HTML path and use it in navigation stage > Params and concatenate html path and variables you have created in such a way to pass the value to html path dynamically based on the value it will select the radio button.
If you are intrested to explore xpathg and CSS ()check this course(Spying Using CSS Selector and XPath – Basics) in university.
14-10-24 12:07 PM
Hi @blazino17
Based on the screenshot you made dynamic selector for web value but you are still using path as well, IN order to select the dynamic value unselect the path and use attributes like match index, Tag Name, web text or web target address check which one is the best suitable for you.
Since Path is dynamic value for each of teh radio button it might be the reason it is not able to select it.
if you want to select based on path.
You need to make dynamic selection for WebPath/XPath in APp Modeller
In app Modeller spy all the radio buttons in the screenshot. Identify dynamic values it might be both rows and columns in path or it may be just one of them
Once you identify the position in html path . Create one or two variables based on the dynamic values whether it is row or column or both.
1) Copy the whole HTML path and use it in navigation stage > Params and concatenate html path and variables you have created in such a way to pass the value to html path dynamically based on the value it will select the radio button.
If you are intrested to explore xpathg and CSS ()check this course(Spying Using CSS Selector and XPath – Basics) in university.
14-10-24 02:05 PM
Thank you, Let me try it out
15-10-24 02:10 PM
Thank you so much; it worked, I appreciate you for your help