How can we search randomly for text like paragraph or image in the web page and get its attribute values.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-04-17 08:33 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-04-17 01:31 PM
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 .
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-04-17 02:59 PM
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.
