java - Unable to click dynamically changing id button created using span and not to select option from dropdown list -


below span i'm trying click. number sequence in id changing dynamically.

<span id="actionsbutton__o3uid5535_label" class="dijitreset dijitinline dijitbuttontext" data-dojo-attach-point="containernode,_popupstatenode">actions</span> 

so tried use..

webdriverwait wait = new webdriverwait(driver, 10); webelement el = wait.until(expectedconditions.presenceofelementlocated(by.xpath(".//span[contains(text(), 'actions')]")));         ((javascriptexecutor)driver).executescript("arguments[0].click()", el);  

but no success.

can please me in finding solution issue


Comments