and in xpath condition code example Example: xpath multiple conditions //div[last() and @class="cls"]