R - using rselenium, how to navigate through drop-down directory

121 views Asked by At

I am trying to use rselenium to upload a CSV file to a website. My last two lines of code are below, which I use to click on an 'upload' button on the website, prompting the website to drop-down a window with my directories, similar to finder, that I can navigate through to select which file I'd like to upload. The code that prompts the drop-down:

upload_CSV_link = remDr$findElement(using = "css selector", "button.dk-btn.dk-btn-success.dk-btn-icon.pull-right")
upload_CSV_link$clickElement()

For clarity, this is essentially the same drop-down that you would get when clicking save as in a microsoft word / excel document. The difficult aspect of this drop-down is that I cannot inspect elements in the drop-down, making it more difficult to navigate to the correct directory / select the correct file. Has anybody experienced this issue before?

Thanks,

0

There are 0 answers