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
Copy file name to clipboardExpand all lines: R/constructors_elements.R
+92-13Lines changed: 92 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +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
33
#' @param prev a placeholder for the output of functions being piped into click(). Defaults to NULL and should not be altered.
33
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.
98
126
#' @param text a character vector specifying the text to be typed.
99
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.
100
129
#' @param prev a placeholder for the output of functions being piped into type(). Defaults to NULL and should not be altered.
101
130
#' @return a character string defining 'RSelenium' typing instructions that can be pasted into a scraping function.
@@ -217,6 +272,7 @@ type <- function(using, value, name = NULL, text, text_object, prev = NULL){
217
272
#' @param value character string specifying the search target.
218
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.
219
274
#' @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.
220
276
#' @return a character string defining 'RSelenium' getElementText() instructions that can be pasted into a scraping function.
221
277
#' @export
222
278
#'
@@ -251,7 +307,7 @@ type <- function(using, value, name = NULL, text, text_object, prev = NULL){
0 commit comments