Closed LukasWallrich closed 11 months ago
I now dug deeper into chromote and realised that they don't expose the URL as easily as rSelenium would. I suggested that they might want to change that - https://github.com/rstudio/chromote/issues/128 - but at the moment, it seems possible to get the URL by running get_session()$driver$Runtime$evaluate("window.location.href")$result$value
- so maybe that could be used to populate current_url
?
I actually made this function as a helper for one of my tests, but never exported it! It should be exported in the dev version now.
This change is now released in selenider 0.2.0
When selenider gets redirected (using chromote), I currently struggle to figure out where it is.
I noticed that session objects have a current_url property - but it remains empty in my case (even though the navigation succeeded, as shown by the screenshot). Is that a bug? Or can I find it anywhere else?