Clicking on xpath button with Selenium on Python
<p>i used Selenium IDE on Firefox to find the  <a href="http://i.stack.imgur.com/bcLp8.jpg" rel="nofollow">xpath of buttons.</a> The next step is to click the button on Python. I tried inserting the xpath in the code below, but no luck. I do not know how to change the xpath so that it fits to the code below.</p>

<pre><code>browser.find_element_by_xpath('')
</code></pre>

<p>Any help is appreciated!</p>

<p>Be careful with quotes and double quotes, use double outside and simple inside, for example</p>

<pre><code>"//*[@class='myClass']"
</code></pre>

<p>Try this:</p>

<pre><code>browser.find_element_by_xpath("(//button[@type='button'])[20ââ9]")
</code></pre>

<p>You should get the selector manually in another way, this selector is not reliable at all, if any of the previous button is missing you will click the wrong button.</p>

python python-3.x selenium xpath selenium-webdriver