library(xml2)
require(RSelenium)
# open the remote driver
fprof <- makeFirefoxProfile(list(browser.download.dir = "C:/temp"
, browser.download.folderList = 2L
, browser.download.manager.showWhenStarting = FALSE
, browser.helperApps.neverAsk.saveToDisk = "application/zip"))
remDr <- remoteDriver(browserName = "firefox",remoteServerAddr = "192.168.99.100",port = 4445L,extraCapabilities = fprof)
remDr$open(silent = TRUE)
#
# go to the webpage
remDr$navigate("https://www.expedia.co.uk/Guangzhou-Hotels-Blog-Hotel-Guangzhou.h8282429.Hotel-Information")
# create R objects from the website elements
guestreview <- remDr$findElement(using = 'id', value = "tab-reviews")
Nextbtn <- remDr$findElement(using = 'class', value = "pagination-next")
# click the guest review button
remDr$screenshot(display = TRUE)
# get the output
reviews <- remDr$findElement(using = "class", value="translate-text")
reviews <- reviews$getElementText()[[1]] # extract the actual text string
hi, I’m using Rselenium to scrape users reviews from a website expedia. I followed this tutorial https://rawgit.com/petrkeil/Blog/master/2017_08_15_Web_scraping/web_scraping.html but I’m getting an error while trying to click on a button “guest reviews” Can u please help me find my errors I’m stuck on this issue since more than a week
Selenium message:Element is not clickable at point (264, 28.333328247070312). Other element would receive the click: <div class="modal-wrap uitk-tooltip-container modal-dismiss active" id="eds-modal"></div>