Short xPath in R for use with RSelenium
问题 I have a problem when using findElement() from RSelenium with xPath on this page where the xPath expression for an element is very long, i.e. the element is nested deeply (I use firefox for the remote driver). findElement() works fine on the page if I use a short xPath expression that I get from inspecting the element e.g. in Google Chrome. However, in R (as far as I know) I can only retrieve the long xPath expression using for example xml_path() from package xml2 . Is there a way to get a