n document.body.scrollHeight&quot;</span><span class="p">)</span>
            <span class="k">if</span> <span class="n">new_height</span> <span class="o">==</span> <span class="n">old_height</span><span class="p">:</span>
                <span class="k">try</span><span class="p">:</span>
                    <span class="n">button</span> <span class="o">=</span> <span class="n">driver</span><span class="o">.</span><span class="n">find_elements_by_xpath</span><span class="p">(</span><span class="s2">&quot;//i