<?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 Thanks joakimeklund! in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/How-do-you-iteratively-click-similar-buttons-on-a-page/m-p/62031#M15218</link>
    <description>Thanks joakimeklund!
After changing the element's Path to be dynamic (was not aware of this option) I was able to change the Parameter for Path in the Navigate action to change the text to be whatever I wanted and iterated through. Worked perfectly!</description>
    <pubDate>Fri, 20 Jan 2017 05:31:00 GMT</pubDate>
    <dc:creator>kevin_b_hall</dc:creator>
    <dc:date>2017-01-20T05:31:00Z</dc:date>
    <item>
      <title>How do you iteratively click similar buttons on a page?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-do-you-iteratively-click-similar-buttons-on-a-page/m-p/62028#M15215</link>
      <description>Hi,

To practice, I wanted to make a simple Blue Prism process that clicked each "Unfollow" button on a twitter page.

I thought I could do this by looking at the path of an element and iterating the number that identified the "Unfollow" button but I can't figure out how to do this. 

For example let's say the first "Unfollow" button had the path value of "/HTML/BODY(1)/DIV(2)/DIV(1)" and the second had "/HTML/BODY(1)/DIV(2)/DIV(2)".

Is there a way to put a variable within the path and use a counter to iterate through each button? Kind of like the following psuedocode?

Counter = 1
UnfollowButtonPath = "/HTML/BODY(1)/DIV(2)/DIV({Counter})"
UnfollowButtonCount = 300
Loop UnfollowButtonCount times
{
    Click UnfollowButton with Path == UnfollowButtonPath
    Counter + 1
}

Or is there no way to dynamically change an element or have some kind of pattern recognition?</description>
      <pubDate>Thu, 19 Jan 2017 08:54:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-do-you-iteratively-click-similar-buttons-on-a-page/m-p/62028#M15215</guid>
      <dc:creator>kevin_b_hall</dc:creator>
      <dc:date>2017-01-19T08:54:00Z</dc:date>
    </item>
    <item>
      <title>This is also my question.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-do-you-iteratively-click-similar-buttons-on-a-page/m-p/62029#M15216</link>
      <description>This is also my question.  Any way to solve these kind of issue?</description>
      <pubDate>Thu, 19 Jan 2017 11:13:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-do-you-iteratively-click-similar-buttons-on-a-page/m-p/62029#M15216</guid>
      <dc:creator>GongquanZHANG</dc:creator>
      <dc:date>2017-01-19T11:13:00Z</dc:date>
    </item>
    <item>
      <title>In application modeller you</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-do-you-iteratively-click-similar-buttons-on-a-page/m-p/62030#M15217</link>
      <description>In application modeller you can set the path attribute to dynamic, thus enabling you to enter ""/HTML/BODY(1)/DIV(2)/DIV("" &amp;amp; {Counter} &amp;amp; "")"" within the navigate stage you use to click the button.</description>
      <pubDate>Thu, 19 Jan 2017 11:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-do-you-iteratively-click-similar-buttons-on-a-page/m-p/62030#M15217</guid>
      <dc:creator>joakimeklund</dc:creator>
      <dc:date>2017-01-19T11:47:00Z</dc:date>
    </item>
    <item>
      <title>Thanks joakimeklund!</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-do-you-iteratively-click-similar-buttons-on-a-page/m-p/62031#M15218</link>
      <description>Thanks joakimeklund!
After changing the element's Path to be dynamic (was not aware of this option) I was able to change the Parameter for Path in the Navigate action to change the text to be whatever I wanted and iterated through. Worked perfectly!</description>
      <pubDate>Fri, 20 Jan 2017 05:31:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-do-you-iteratively-click-similar-buttons-on-a-page/m-p/62031#M15218</guid>
      <dc:creator>kevin_b_hall</dc:creator>
      <dc:date>2017-01-20T05:31:00Z</dc:date>
    </item>
  </channel>
</rss>

