Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions R/webdriver.R
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ page_title <- function(){
customrequest = "GET",
httpheader = c('Content-Type' = 'application/json;charset=UTF-8'),
binary = T)))

Encoding(windowTitle$value)<-"UTF-8"
return(windowTitle$value)
}

Expand Down Expand Up @@ -299,9 +299,22 @@ page_source <- function(){
customrequest="GET",
httpheader=c('Content-Type'='application/json;charset=UTF-8'),
binary=T)))

Encoding(source$value)<-"UTF-8"
return(source$value)
}
#' Retrieve cookies
#'
#' Get the current cookies
#' @export
#' @return a string containing the page cookies
get_cookies <- function(){
cookies <- fromJSON(rawToChar(getURLContent(paste0(seleniumSession$sessionURL, "/cookie"),
customrequest = "GET",
httpheader = c('Content-Type' = 'application/json;charset=UTF-8'),
binary = T)))

return(cookies$value)
}

#' Find an element via XPath
#'
Expand Down
8 changes: 7 additions & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
R bindings to the Webdriver API

crubba doesn't maintain this package anymore because he/she still doesn't react about my pr.
So I'm trying to maintain Rwebdriver package.
Because easier than RSelenium.


R bindings to the Webdriver API