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

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

python - Error: Unresolved reference 'selenium' What is the reason? -

php - Need to store a large amount of data in session with CI 3 but on storing large data in session it is itself destorying automatically -