i working on project, need click on split button (arrow head).
below html:
<table id="ext-comp-1006" cellspacing="0" class="x-btn support-servicedesk-sb casemru standardobject mruicon support-servicedesk-sbactive x-btn-noicon" style="width: 250px; height: 26px;"> <tbody class="x-btn-small x-btn-icon-small-left"> <tr> <td class="x-btn-tl"> <i> </i> </td> <td class="x-btn-tc"></td> <td class="x-btn-tr"> <i> </i> </td> </tr> <tr> <td class="x-btn-ml"> <i> </i> </td> <td class="x-btn-mc"> <em class="x-btn-split" unselectable="on" id="ext-gen100"> <button type="button" id="ext-gen33" class=" x-btn-text"> <div class="mruicon"></div> <span>cases</span> </button> </em> </td> <td class="x-btn-mr"> <i> </i> </td> </tr> <tr> <td class="x-btn-bl"> <i> </i> </td> <td class="x-btn-bc"></td> <td class="x-btn-br"> <i> </i> </td> </tr> </tbody> </table>
my code click on split button:
driver.findelement(by.classname("x-btn-split")).click();
i tried id
throwing couldn't find element error.
try one:
driver.findelement(by.xpath('//button[@id="ext-gen33"]')).click()
Comments
Post a Comment