if(&wait_visible_continue('//a[@class="btn btn3d selectionbtn"]')){ $mech->click( {xpath => '//a[@class="btn btn3d selectionbtn"]'}); print "Click Menu done..\n"; } #Here I have the dropdown visualized on screen. #Next snippet doesn't produce the selection of the wanted row if(&wait_visible_continue('//td[contains(text(),"Group")]')){ $mech->click( {xpath => '//td[contains(text(),"Group")]'}); print "Choose the right voice from dropdown done..\n"; }