I am trying to find an input element with dynamic id name always ending with "register". So far I tried this
"//input[@id[ends-with(.,'register')]]"
and this
"//input[ends-with(@id,'register')]"
none of these result in an element. What am I doing wrong? At the same time this works:
"//input[@id[contains(.,'register')]]"
Here's the part of source:
<td class="input">
<input id="m.f0.menu.f2.volumeTabs.BLOCK_COMMON.tcw.form.register" name="m.f0.menu.f2.volumeTabs.BLOCK_COMMON.tcw.form.register" class="aranea-checkbox" type="checkbox"> </td>