<div id="yui_3_16_0_1_1399697074576_1339" class="cbox " role="gridcell">
<input id="yui_3_16_0_1_1399697074576_1338" type="checkbox" tabindex="-1" 89513626107905="" aria-label="Message " title="Select this email">
<span id="yui_3_16_0_1_1399697074576_1340" class="icon"></span>
</div>`
The above HTML is from firebug.
I want to click the checkbox, its ID is id="yui_3_16_0_1_1399697074576_1338"
from above. I tried using by.id
and by.path
, however neither of them work.
The following is what I tried:
By.id("yui_3_16_0_1_1399697074576_1338")
By.xpath("//input[@id='yui_3_16_0_1_1399697074576_1339'
Can someone help me on this?
<some specific selector higher up>/div[1]/input[1]
. – Artjom B. yesterday