Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用Rselenium发送十六进制颜色?_Selenium_Rselenium - Fatal编程技术网

如何使用Rselenium发送十六进制颜色?

如何使用Rselenium发送十六进制颜色?,selenium,rselenium,Selenium,Rselenium,我正在尝试使用rselenium写入/发送十六进制颜色,但它显示绿色 library(RSelenium) rD <- RSelenium::rsDriver(browser = "firefox", check = FALSE) remDr <- rD[["client"]] remDr$navigate("https://9qrcode.com/#link") remDr$findElement("xpath&

我正在尝试使用rselenium写入/发送十六进制颜色,但它显示绿色

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"))
库(RSelenium)
研发部