I have the following situation: - a div (that is a button) with an "id" that is always changing; - this div has a inside with a text. Please see below the sample code;
<div id="00NU0000002si99" class="item unused">
<span>Button Name</span>
</div>
The only way to for my next scenarios to work is to get the "id" for the div. I have tried this:
@browser.div(:text, "Button Name").id
It seems that I am doing something wrong because the line above is returning nothing. Is there a way to get value for this tag?