开发者

how does this xpath behave?

开发者 https://www.devze.com 2023-02-02 22:09 出处:网络
html//p//table//tr//td//a Would this xpath be able to handle any element appearing between the above said elements ?
html//p//table//tr//td//a

Would this xpath be able to handle any element appearing between the above said elements ?

for ex)

html/p/div/table/tr/td/a
html/span/p/div/div/table/tr/开发者_如何转开发td/b/a


html//p//table//tr//td//a

Would this xpath be able to handle any element appearing between the above said elements ?

for ex)

html/p/div/table/tr/td/a

html/span/p/div/div/table/tr/td/b/a

Yes, in both cases.


Yes, It will handle both of the scenarios

0

精彩评论

暂无评论...
验证码 换一张
取 消