I have to read the comments on Linkedin, which shows only 10 comments at a time with a link "Show Previous Comment". I have 1000 comments so need to click the show previous comment 100 times to see all of them. I want to know how to use Rselenium to use "clickElement()" 100 times on the linkedin page. Afterward, I hope to export the comments to a spreadsheet or text file.
Here is the code
comments <- remDr$findElement(using = 'class name', "text")
comments$clickElement()
This enables me to click once but I need to click it 100 times.