I am doing a loop using Rselenium and it generally works as desired. However, some webElements are not built in the same way as the others and thus I get the following error