Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有没有链式定位元素功能 #23

Open
gstorms opened this issue Feb 21, 2021 · 1 comment
Open

有没有链式定位元素功能 #23

gstorms opened this issue Feb 21, 2021 · 1 comment

Comments

@gstorms
Copy link

gstorms commented Feb 21, 2021

No description provided.

@defnngj
Copy link
Collaborator

defnngj commented May 19, 2021

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

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

用css 替换

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants