How to read an html table using Rselenium? How to read an html table using Rselenium? selenium selenium

How to read an html table using Rselenium?


Something like:

library(XML)doc <- htmlParse(remDr$getPageSource()[[1]])readHTMLTable(doc)

should allow you to access the html and process the tables contained.


I prefer using rvest, so what I did was:

# Importing librarieslibrary(RSelenium)library(rvest)# Extracting tableremDr$getPageSource()[[1]] %>%   read_html() %>%  html_table()