cancel
Showing results for 
Search instead for 
Did you mean: 

How can we search randomly for text like paragraph or image in the web page and get its attribute values.

yogesh_thupda
Level 3
How can we search randomly for text like paragraph or image in the web page and get its attribute values. A paragraph is taken as input with header and text is to be searched on page randomly. The Header and remaining text are placed under on parent div but the content in the header is under header tag and the remaining text under the div tag . So, how can we find the find the element with the entire paragraph and also get the attribute values.
2 REPLIES 2

Prasanna_Kumar1
Level 4
Blue Prism depends on predefined layout of the page to identify the element . if your text appears at random position , BP cant extract it using conventional actions. Inject javascript to extract plain text out of HTML and build logic on the result .

Denis__Dennehy
Level 15
Potentially you could use image search to find your image and then use dynamic attributes within an element to find that element based upon coordinates. It is not something i have ever done so may not be robust - I also suspect there will be a better way of doing whatever you want to do.