@aurimasv i.e., replace `selects[i].options[selects[i].selectedIndex].value` by `selects[i].value`, right? (I am actually not sure, if these lines with select-xpath are ever executed, but I copied them from the old code.)