selenium_switch: Switch Window Handles in RSelenium

View source: R/selenium_switch.R

selenium_switchR Documentation

Switch Window Handles in RSelenium

Description

This function is from [RSelenium GitHub Issue #143](https://github.com/ropensci/RSelenium/issues/143): John Harrison's answer. This helps switch between window handles when using RSelenium. Call such as 'remDr$getWindowHandles()[[1]]' and so on.

Usage

selenium_switch(remDr, windowID)

Arguments

remDr

'remoteDriver' object created from RSelenium 'rsDriver'.

windowID

ID of the window handle to switch to.


sysilviakim/Kmisc documentation built on Jan. 28, 2023, 10:58 a.m.