在RSelenium中的findElement函数中传递变量的值

我想知道如何将for函数提供的值传递给RSelenium包的findElement函数中的value参数。

代码如下:

option <- remDr$findElement(using = 'xpath',"//select[@id='mainContent_lbCcats']/option[@value='10']")
option$clickElement()

但是我想要以下内容,但它不起作用:

option <- remDr$findElement(using = 'xpath',"//select[@id='mainContent_lbCcats']/option[@value=var]")
option$clickElement()

如何传递通过R中的循环而变化的变量的值?

此致

gromzyw 回答:在RSelenium中的findElement函数中传递变量的值

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3156712.html

大家都在问