R Can';找不到此元素的css选择器或xpath
我正在用RSelenium编写一个自动化脚本,我需要它来打开页面。执行并单击“缩短”按钮。我尝试使用选择器小工具通过css和xpath选择元素,但它给我的建议没有用,因为通过这些尝试,我得到了“元素不可见”R Can';找不到此元素的css选择器或xpath,r,xpath,css-selectors,R,Xpath,Css Selectors,我正在用RSelenium编写一个自动化脚本,我需要它来打开页面。执行并单击“缩短”按钮。我尝试使用选择器小工具通过css和xpath选择元素,但它给我的建议没有用,因为通过这些尝试,我得到了“元素不可见” #CSS选择器尝试 缩短css: xpath: //input[@value='Shorten'] //input(contains(@onclick, 'shorten')) shorten <- remDr$findElement(using ='value', value =
#CSS选择器尝试
缩短css:
xpath:
//input[@value='Shorten']
//input(contains(@onclick, 'shorten'))
shorten <- remDr$findElement(using ='value', value = 'Shorten')
shorten <- remDr$findElement('css selector', '.btn')
shorten <- remDr$findElement('css selector', 'input.btn')
shorten <- remDr$findElement('css selector', 'td>.btn')
shorten <- remDr$findElement('css selector', 'td. btn')
input[value=Shorten]
input[onclick*=shorten]
//input[@value='Shorten']
//input(contains(@onclick, 'shorten'))