假设 xpath 如下:
xpath : //div[@id='cslGridViewPanelControl']/div/div[2]/div/table/tbody/tr/td[2]/table/tbody/tr/td/table/tbody/tr/td/div
Last div element contains 'Displaying 1 to 30 of 145300'.
I need to store 'Displaying 1 to 30 of 145300' in some variable by using selenium tool.
我试过了
command target value
store xpath variable1
echo ${variable1}
它显示为变量 1:xpath。但我需要变量 1:“显示 145300 的 1 到 30”。谁能帮帮我?