I'm experimenting with the chromote
package as a replacement for RSelenium
. I see how to navigate to a particular URL, but I can't spot the command to use to obtain the current URL. In RSelenium
it was getCurrentUrl()
; in webdriver
it was getUrl()
.
Is there an equivalent in chromote
?
Here's what I've got:
library(chromote)
session <- ChromoteSession$new()
session$Page$navigate("https://stackoverflow.com")
# some clicks etc on the page
# Now where did I end up?
Not sure about a
chromote
method, though we can evaluatewindow.location.href
:Created on 2024-01-30 with reprex v2.0.2