I need to use Selenium Java to click on some links based on another element in the same line. I have the following HTML:
I need to click on the span link (red color) of every line which contains that empty checkbox (green color). I can find all empty checkboxes by using xpath //img[contains(@src,'completion-auto-n')], but I can't find a XPATH to click on these span based on the checkbox's values.