get_visible_webels: Get only the visible elements from a list of webelements

View source: R/get_visible_webels.r

get_visible_webelsR Documentation

Get only the visible elements from a list of webelements

Description

This function allows you to extract only the visible elements from a list of webelments.

Usage

get_visible_webels(list_of_webel)

Arguments

webels

A list with webelements

Value

A vector containing only the visible webelements

Examples

url <- "https://www.hyundai.ch/"
remDr <-  prepare_browser_function(url,"id","onetrust-reject-all-handler", containerport = 4445L)
remDr$navigate("https://www.hyundai.ch/de/model/i10/")
configbutton <- remDr$findElements(using = "id", "configBtn")
visbible_configbutton <- get_visible_webels(configbutton)
length(configbutton)
length(visbible_configbutton)

Ricardo281/carconfig documentation built on March 18, 2022, 1:09 p.m.