<?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 Re: Xpath Usage in Blue Prism in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Xpath-Usage-in-Blue-Prism/m-p/109998#M49705</link>
    <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/32920"&gt;@swapnadeep_deb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The support for XPath is in the browser itself and currently (and apparently forever) only XPath 1.0 is supported.&lt;/P&gt;&lt;P&gt;I don't know what kind of Regex you are looking for but if you are just simply wanting to look for a list of values, one very poorly documented feature of XPath 1.0 is the OR operator. You can, for example, look for an element that can flips between "Successful" and "Failure" by using the "|" OR operator with the following XPath:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;//span[text()='Successful']|//span[text()='Failure']&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Apr 2024 13:01:21 GMT</pubDate>
    <dc:creator>MichealCharron</dc:creator>
    <dc:date>2024-04-29T13:01:21Z</dc:date>
    <item>
      <title>Xpath Usage in Blue Prism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Xpath-Usage-in-Blue-Prism/m-p/109993#M49704</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;We have a requirement to use regular expression in Xpath for identification of an element. Now Xpath 1.0 doesn't support regex usage but it does from 2.0 version.&lt;/P&gt;&lt;P&gt;Could you please confirm if BP supports a higher version of Xpath presently.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BP version I am using = 7.1.1&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 09:33:09 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Xpath-Usage-in-Blue-Prism/m-p/109993#M49704</guid>
      <dc:creator>swapnadeep_deb</dc:creator>
      <dc:date>2024-04-29T09:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Xpath Usage in Blue Prism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Xpath-Usage-in-Blue-Prism/m-p/109998#M49705</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/32920"&gt;@swapnadeep_deb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The support for XPath is in the browser itself and currently (and apparently forever) only XPath 1.0 is supported.&lt;/P&gt;&lt;P&gt;I don't know what kind of Regex you are looking for but if you are just simply wanting to look for a list of values, one very poorly documented feature of XPath 1.0 is the OR operator. You can, for example, look for an element that can flips between "Successful" and "Failure" by using the "|" OR operator with the following XPath:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;//span[text()='Successful']|//span[text()='Failure']&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 13:01:21 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Xpath-Usage-in-Blue-Prism/m-p/109998#M49705</guid>
      <dc:creator>MichealCharron</dc:creator>
      <dc:date>2024-04-29T13:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Xpath Usage in Blue Prism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Xpath-Usage-in-Blue-Prism/m-p/110181#M49765</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/548"&gt;@MichealCharron&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;That's a cool insight but my situation is kinda different. So supposedly there's an element with the html id = abc-1-xyz. Now here the 1 changes to a random number say 4 or 6 for the next appearances of the same element. Now here using an xpath as //*[@id='abc-\d+-xyz'] and doing a regex* match seems a stable approach than using something like&amp;nbsp;//*[contains(@id,'abc'] as it will fail if any element appears in the root app with an id containing 'abc'&lt;/P&gt;&lt;P&gt;Now when I searched a bit I found the Xpath 1.0 doesn't support reg expressions. So the query on if v2.0 is supportable. If you say it's not then it's kinda sad and gotta find other ways to match the element !&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 17:47:50 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Xpath-Usage-in-Blue-Prism/m-p/110181#M49765</guid>
      <dc:creator>swapnadeep_deb</dc:creator>
      <dc:date>2024-05-06T17:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Xpath Usage in Blue Prism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Xpath-Usage-in-Blue-Prism/m-p/110184#M49766</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/32920"&gt;@swapnadeep_deb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could always use the XPath &lt;STRONG&gt;AND&lt;/STRONG&gt; equivalent and the workaround for &lt;STRONG&gt;ends-with&lt;/STRONG&gt; (another thing that does not exist in XPath v1.0). Something, for your example, like the following would work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;//div[starts-with(@id, 'abc-')]['-xyz'=substring(@id, string-length(@id) - string-length('-xyz')+1)]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Putting two or more filters together works like an &lt;STRONG&gt;AND&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;The really ugly stuff is the workaround for the &lt;STRONG&gt;ends-with&lt;/STRONG&gt; function which simply compares the text you want at the end of the &lt;EM&gt;id&lt;/EM&gt; with a substring of the end of an &lt;EM&gt;id&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="MichealCharron_0-1715028632063.png" style="width: 999px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/38080i00A4EFF84BBFF428/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="MichealCharron_0-1715028632063.png" alt="MichealCharron_0-1715028632063.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 21:02:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Xpath-Usage-in-Blue-Prism/m-p/110184#M49766</guid>
      <dc:creator>MichealCharron</dc:creator>
      <dc:date>2024-05-06T21:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Xpath Usage in Blue Prism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Xpath-Usage-in-Blue-Prism/m-p/110270#M49795</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/32920"&gt;@swapnadeep_deb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry to dwell on this but this morning another solution popped into my head (I have to get a life). You could also use the following for your example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;//div[translate(@id,'0123456789','')='abc--xyz']&lt;/LI-CODE&gt;&lt;P&gt;It is simpler because it just removes all the numbers out of the string for comparison.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichealCharron_0-1715181504833.png" style="width: 999px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/38114i6C3344379DB99655/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="MichealCharron_0-1715181504833.png" alt="MichealCharron_0-1715181504833.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 15:20:18 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Xpath-Usage-in-Blue-Prism/m-p/110270#M49795</guid>
      <dc:creator>MichealCharron</dc:creator>
      <dc:date>2024-05-08T15:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Xpath Usage in Blue Prism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Xpath-Usage-in-Blue-Prism/m-p/110555#M49847</link>
      <description>&lt;P&gt;That's a more concise function&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/548"&gt;@MichealCharron&lt;/a&gt;&amp;nbsp;. Keep adding to it so we keep learning !&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 18:51:39 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Xpath-Usage-in-Blue-Prism/m-p/110555#M49847</guid>
      <dc:creator>swapnadeep_deb</dc:creator>
      <dc:date>2024-05-15T18:51:39Z</dc:date>
    </item>
  </channel>
</rss>

