poium icon indicating copy to clipboard operation
poium copied to clipboard

有没有链式定位元素功能

Open gstorms opened this issue 4 years ago • 1 comments

gstorms avatar Feb 21 '21 02:02 gstorms

没有,链试看似很酷,其实没那么有用,完全可以通过xpath 和 css 的层级定位替换。

page.by_tag("div").by_form("form").by_id("id")

用css 替换

page.element("div > form > #id")

defnngj avatar May 19 '21 15:05 defnngj