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 -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -