go {seleniumPipes}R Documentation

Navigate to a new URL.

Description

go Navigate to a new URL.

Usage

go(remDr, url, ...)

Arguments

remDr

An object of class "rDriver". A remote driver object see remoteDr.

url

The URL to navigate to.

...

Additonal function arguments - Currently passes the retry argument.

Value

invisible(remDr): An object of class "rDriver" is invisibly returned. A remote driver object see remoteDr. This allows for chaining from this function to other functions that take such an object as an argument. See examples for further details.

See Also

Other navigation functions: back, forward, getCurrentUrl, getTitle, refresh

Examples

## Not run: 
  remDr <- remoteDr()
  remDr %>% go("http://www.google.com/ncr")

  # get the title
  remDr %>% getTitle

  # get the current page url
  remDr %>% getCurrentUrl

  # navigate
  remDr %>% go("http://www.bbc.co.uk")

  # go back
  remDr %>% (seleniumPipes::back)

  # go forward
  remDr %>% forward

  # refresh page
  remDr %>% refresh

  # close browser
  remDr %>% deleteSession

## End(Not run)


[Package seleniumPipes version 0.3.7 Index]