ropensci / RSelenium

An R client for Selenium Remote WebDriver

Home Page:https://docs.ropensci.org/RSelenium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change Color Input

msgoussi opened this issue · comments

I am trying to write/send a hex color using rselenium, but it shows green color....

library(RSelenium)
rD <- RSelenium::rsDriver(browser = "firefox", check = FALSE)
remDr <- rD[["client"]]
remDr$navigate("https://9qrcode.com/#link")
remDr$findElement("xpath", "//button[contains(.,' Colors')]")$clickElement()
# Background
remDr$findElement("name", "backcolor")$clearElement()
remDr$findElement("name", "backcolor")$sendKeysToElement(list("#0D3C47"))