 <p>Actually it was straight-forward selenium code:</p> <pre><code>click link="Change..." pause 200 click //ul[contains(@id,'fruit-switcher')]//ul[contains(@class,'dropdown-menu')]/li[3]/a click link="Change..." pause 600 click //ul[contains(@id,'fruit-switcher')]//a[contains(text(),'Bananas')] </code></pre>