<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to dynamically spy repeated similar Web Elements in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/How-to-dynamically-spy-repeated-similar-Web-Elements/m-p/96631#M44838</link>
    <description>Hi All,&lt;BR /&gt;Greetings.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am working on automating a process flow in a Web Application. Below is a screen shot of the web page that I am working with.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35104.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35167i85AA17C0D0766AEB/image-size/large?v=v2&amp;amp;px=999" role="button" title="35104.png" alt="35104.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Scenario:&lt;/STRONG&gt; &lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;The element "Approval Pending" is repeated twice here.&lt;/LI&gt;
&lt;LI&gt;This element can be repeated multiple times within the page.&lt;/LI&gt;
&lt;LI&gt;I want to make the automation bot in blue prism to pick up the latest element which comes at the last of this page.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;BR /&gt;&lt;STRONG&gt;Issues Faced:&lt;/STRONG&gt; &lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;I could not use an Xpath in this case as the position may vary.&lt;/LI&gt;
&lt;LI&gt;If I use the Element name (Web Text) it says the obvious error that there are multiple similar elements.&lt;/LI&gt;
&lt;LI&gt;I also couldn't use "Match Index".&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;BR /&gt;I am unware whether this issue has already been solved. If yes, please post a link to the discussion. Else could anyone please provide their valuable inputs on how to approach this problem.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Siddharth.</description>
    <pubDate>Wed, 02 Feb 2022 12:02:52 GMT</pubDate>
    <dc:creator>SiddharthAbiram</dc:creator>
    <dc:date>2022-02-02T12:02:52Z</dc:date>
    <item>
      <title>How to dynamically spy repeated similar Web Elements</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-dynamically-spy-repeated-similar-Web-Elements/m-p/96631#M44838</link>
      <description>Hi All,&lt;BR /&gt;Greetings.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am working on automating a process flow in a Web Application. Below is a screen shot of the web page that I am working with.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35104.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35167i85AA17C0D0766AEB/image-size/large?v=v2&amp;amp;px=999" role="button" title="35104.png" alt="35104.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Scenario:&lt;/STRONG&gt; &lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;The element "Approval Pending" is repeated twice here.&lt;/LI&gt;
&lt;LI&gt;This element can be repeated multiple times within the page.&lt;/LI&gt;
&lt;LI&gt;I want to make the automation bot in blue prism to pick up the latest element which comes at the last of this page.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;BR /&gt;&lt;STRONG&gt;Issues Faced:&lt;/STRONG&gt; &lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;I could not use an Xpath in this case as the position may vary.&lt;/LI&gt;
&lt;LI&gt;If I use the Element name (Web Text) it says the obvious error that there are multiple similar elements.&lt;/LI&gt;
&lt;LI&gt;I also couldn't use "Match Index".&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;BR /&gt;I am unware whether this issue has already been solved. If yes, please post a link to the discussion. Else could anyone please provide their valuable inputs on how to approach this problem.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Siddharth.</description>
      <pubDate>Wed, 02 Feb 2022 12:02:52 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-dynamically-spy-repeated-similar-Web-Elements/m-p/96631#M44838</guid>
      <dc:creator>SiddharthAbiram</dc:creator>
      <dc:date>2022-02-02T12:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically spy repeated similar Web Elements</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-dynamically-spy-repeated-similar-Web-Elements/m-p/96632#M44839</link>
      <description>Hi Siddharth,&lt;BR /&gt;&lt;BR /&gt;You can actually use a dynamic XPath function to get this thing sorted I believe. I will show you an example. Below I am using an XPath expression like: &lt;CODE&gt;(//td[text()='Software Engineer'])[last()]&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35103.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35172i2C273B122998BD4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="35103.png" alt="35103.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;So here if you see the &lt;CODE&gt;last()&lt;/CODE&gt; function is going to return the last element where the TD tag that is recurring can have the text as 'Software Engineer'. Similarly, check which tag it is that has that text by inspecting the web element and replace the td tag in the above XPath expression with the tag that you get. This should solve your problem.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;----------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the answer resolves your query, please mark it as the Best Answer so that others can easily track the right answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Devneet Mohanty&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Intelligent Process Automation Consultant | Senior Consultant - Automation Developer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wonderbotz India Pvt. Ltd.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Blue Prism Community MVP | Blue Prism 7x Certified Professional&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;----------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;</description>
      <pubDate>Wed, 02 Feb 2022 12:54:24 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-dynamically-spy-repeated-similar-Web-Elements/m-p/96632#M44839</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2022-02-02T12:54:24Z</dc:date>
    </item>
  </channel>
</rss>

