ropensci / RSelenium

An R client for Selenium Remote WebDriver
https://docs.ropensci.org/RSelenium
343 stars 81 forks source link

Change Color Input #247

Open msgoussi opened 3 years ago

msgoussi commented 3 years ago

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"))