Loop selenium python : <p>I'm trying to do this thing, I have a list of elements all equal, but if i create a loop that have to click on all the element it stops at the first one and clicking it infinite times, i don0t know how to pass to the next becouse the doesn't have difference on click or in other way. What can i do?</p>

<p>This is the loop</p>

<pre><code>a=0
while a &lt; 3:
driver.find_element_by_xpath("/html/body/span/section/main/section/div[1]/div[1]/div/article[1]/div[2]/section[3]/form/textarea").click()
driver.find_element_by_css_selector("textarea._bilrf").send_keys("hi!", Keys.ENTER)
a += 1 
</code></pre>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;section class="_km7ip _ti7l3 "&gt;&lt;form class="_b6i0l"&gt;&lt;textarea aria-label="Aggiungi un commento..." placeholder="Aggiungi un commento..." class="_bilrf" autocomplete="off" autocorrect="off" style="height: 18px;"&gt;&lt;/textarea&gt;&lt;/form&gt;&lt;/section&gt;
&lt;section class="_km7ip _ti7l3 "&gt;&lt;form class="_b6i0l"&gt;&lt;textarea aria-label="Aggiungi un commento..." placeholder="Aggiungi un commento..." class="_bilrf" autocomplete="off" autocorrect="off" style="height: 18px;"&gt;&lt;/textarea&gt;&lt;/form&gt;&lt;/section&gt;
&lt;section class="_km7ip _ti7l3 "&gt;&lt;form class="_b6i0l"&gt;&lt;textarea aria-label="Aggiungi un commento..." placeholder="Aggiungi un commento..." class="_bilrf" autocomplete="off" autocorrect="off" style="height: 18px;"&gt;&lt;/textarea&gt;&lt;/form&gt;&lt;/section&gt;
&lt;section class="_km7ip _ti7l3 "&gt;&lt;form class="_b6i0l"&gt;&lt;textarea aria-label="Aggiungi un commento..." placeholder="Aggiungi un commento..." class="_bilrf" autocomplete="off" autocorrect="off" style="height: 18px;"&gt;&lt;/textarea&gt;&lt;/form&gt;&lt;/section&gt;
&lt;section class="_km7ip _ti7l3 "&gt;&lt;form class="_b6i0l"&gt;&lt;textarea aria-label="Aggiungi un commento..." placeholder="Aggiungi un commento..." class="_bilrf" autocomplete="off" autocorrect="off" style="height: 18px;"&gt;&lt;/textarea&gt;&lt;/form&gt;&lt;/section&gt;
&lt;section class="_km7ip _ti7l3 "&gt;&lt;form class="_b6i0l"&gt;&lt;textarea aria-label="Aggiungi un commento..." placeholder="Aggiungi un commento..." class="_bilrf" autocomplete="off" autocorrect="off" style="height: 18px;"&gt;&lt;/textarea&gt;&lt;/form&gt;&lt;/section&gt;
&lt;section class="_km7ip _ti7l3 "&gt;&lt;form class="_b6i0l"&gt;&lt;textarea aria-label="Aggiungi un commento..." placeholder="Aggiungi un commento..." class="_bilrf" autocomplete="off" autocorrect="off" style="height: 18px;"&gt;&lt;/textarea&gt;&lt;/form&gt;&lt;/section&gt;</code></pre>
</div>
</div>
</p>

<p>And this the element</p>

<p><code>&lt;form class="_b6i0l"&gt;&lt;textarea aria-label="Aggiungi un commento..." 
placeholder="Aggiungi un commento..." class="_bilrf" autocomplete="off" 
autocorrect="off" style="height: 18px;"&gt;&lt;/textarea&gt;&lt;/form&gt;</code></p>
