java - Is it possible to switch to the next element from the active element in selenium? -
for example, active element input element. need able switch span element in order click checkbox. can't use xpath or css selectors because part of dynamic table element path changes every time. have tried using actions , moving element before clicking doesn't work. other way can think of create hashmap , store key associated checkbox checkbox value (on/off) seems lot quite trivial.
<div class="checkbox"> <label> <input class="ace" data-element-name="compulsory" type="checkbox"> <span class="lbl"></span> </label> </div>
Comments
Post a Comment