You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added 'RSelenium' constructor functions. These functions are wrappers around 'RSelenium' methods that allow you to quickly and easily render safe, ready to use
4
+
'RSelenium' scraping code to the console and paste it into your scraping functions.
5
+
Constructors can be piped together via `%>>%` to allow for intuitive, sequential
6
+
construction of scraping code.
7
+
8
+
1
9
# parsel 0.1.0
2
10
3
11
* Added a `NEWS.md` file to track changes to the package.
Copy file name to clipboardExpand all lines: R/constructors_elements.R
+8-10Lines changed: 8 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ gen_varname <- function(input){
29
29
#' @param using character string specifying locator scheme to use to search elements. Available schemes: "class name", "css selector", "id", "name", "link text", "partial link text", "tag name", "xpath".
30
30
#' @param value character string specifying the search target.
31
31
#' @param name character string specifying the object name the RSelenium "wElement" class object should be saved to.
32
-
#' @param new_page logical indicating if clickElement() action will resullt in a change in url.
32
+
#' @param new_page logical indicating if clickElement() action will result in a change in url.
33
33
#' @param prev a placeholder for the output of functions being piped into click(). Defaults to NULL and should not be altered.
34
34
#' @return a character string defining 'RSelenium' clicking instructions that can be pasted into a scraping function.
#' @param name character string specifying the object name the RSelenium "wElement" class object should be saved to.If NULL a name will be generated automatically.
126
126
#' @param text a character vector specifying the text to be typed.
127
127
#' @param text_object a character string specifying the name of an external object holding the text to be typed. Note that the remDr$sendKeysToElement method only accepts list inputs.
128
-
#' @param new_page logical indicating if sendKeysToElement() action will resullt in a change in url.
128
+
#' @param new_page logical indicating if sendKeysToElement() action will result in a change in url.
129
129
#' @param prev a placeholder for the output of functions being piped into type(). Defaults to NULL and should not be altered.
130
130
#' @return a character string defining 'RSelenium' typing instructions that can be pasted into a scraping function.
131
131
#' @export
@@ -271,8 +271,8 @@ type <- function(using, value, name = NULL, text, text_object, new_page = FALSE,
271
271
#' @param using character string specifying locator scheme to use to search elements. Available schemes: "class name", "css selector", "id", "name", "link text", "partial link text", "tag name", "xpath".
272
272
#' @param value character string specifying the search target.
273
273
#' @param name character string specifying the object name the RSelenium "wElement" class object should be saved to. If NULL a name will be generated automatically.
274
+
#' @param multiple logical indicating whether multiple elements should be returned. If TRUE the findElements() method will be invoked.
274
275
#' @param prev a placeholder for the output of functions being piped into get_element(). Defaults to NULL and should not be altered.
275
-
#' @param multiple logical indicating whether multiple elements should be returned. If TRUE the findElements() method will be invoced.
276
276
#' @return a character string defining 'RSelenium' getElementText() instructions that can be pasted into a scraping function.
0 commit comments