ele_find_first: Search for an element on the page

View source: R/xml2_find.R

ele_find_firstR Documentation

Search for an element on the page

Description

Search for an element on the page

Usage

ele_find_first(x, ...)

## S3 method for class 'remoteDriver'
ele_find_first(x, value, type = "css selector", ...)

## S3 method for class 'character'
ele_find_first(x, type = "css selector", ...)

ele_find_all(x, value, type = "css selector", ...)

## S3 method for class 'remoteDriver'
ele_find_all(x, value, type = "css selector", ...)

## S3 method for class 'character'
ele_find_all(x, type = "css selector", ...)

getElementById(x, value, all = FALSE)

getElementByName(x, value, all = FALSE)

getElementByClass(x, value, all = FALSE)

ele_child(x, value = "*", type = "xpath")

ele_children(x, value = "*", type = "xpath")

querySelector(x, ...)

querySelectorAll(x, value, type = "css selector", ...)

Arguments

x

A remoteDriver object

value

The search target.

type

Locator scheme to use to search the element, available schemes: c("xpath", "class name", "css selector", "id", "name", "link text", "partial link text", "tag name"). Defaults to 'xpath'. Partial string matching is accepted.

Details

Details of possible locator schemes

"class name" :

Returns an element whose class name contains the search value; compound class names are not permitted.

"css selector" :

Returns an element matching a CSS selector.

"id" :

Returns an element whose ID attribute matches the search value.

"name" :

Returns an element whose NAME attribute matches the search value.

"link text" :

Returns an anchor element whose visible text matches the search value.

"partial link text" :

Returns an anchor element whose visible text partially matches the search value.

"tag name" :

Returns an element whose tag name matches the search value.

"xpath" :

Returns an element matching an XPath expression.

See Also

seleniumPipes::findElement()


rpkgs/curlR documentation built on Jan. 30, 2023, 7:26 p.m.