I would be extremely grateful for any help with the following.
Using rselenium, I am trying to iterate through, in increments of 500, a series of records from 1 to n, while exporting each batch. Each time, it has to clear the existing numbers from the box or 'ctrl' + 'a' and overtype what is there. See the picture below.
Using the below code
remdr$navigate("somewebsite.com") webElem1 <- remdr$findElement(using = "css selector", "#markFrom") #selects the element for the first number webElem1$clickElement() # clicks on that element ### it is here I would like to loop through the numbers, increasing 500 at a time (it must clear the previous selection each time, or reload a new instance of the page webElem1$sendKeysToElement(list("1001", key = "tab", "1500")) # enters numbers into elements # then export each batch of 500 webElem2 <- remdr$findElement(using = "css selector", "#exportTypeName") # selects the type of file to export webElem2$clickElement() # clicks on selection webElem3 <- remdr$findElement(using = "css selector", "#exportButton") # exports selection webElem3$clickElement()