get_by_text | R Documentation |
The get_by_text
function retrieves an element with the specified text from the page object within a web browser session.
get_by_text(page_df, text)
page_df |
A data frame containing page information, including the |
text |
A character string representing the text of the element to retrieve. |
The updated page_df
data frame with an additional elem_id
column containing the identifier of the retrieved element.
# Create a page_df data frame
page_df <- data.frame(page_id = "my_page")
# Retrieve an element by text using the page_df
get_by_text(page_df, "Click Me")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.