[英]How I will get text (GET TEXT) in html which has text and other field in the same tags in Robot Framework?
从定位器中删除text()
- 它是一个 xpath 函数,将文本作为字符串返回; 它对 selenium 没有用(实际上,它会导致错误 - 返回的值不是 DOM 元素)。
//*[@id="root"]/div/div/div[2]/div[2]/div/div[2]/h6
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.