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

某东选取元素问题 #613

Open
WenLiang619 opened this issue Nov 29, 2024 · 1 comment
Open

某东选取元素问题 #613

WenLiang619 opened this issue Nov 29, 2024 · 1 comment

Comments

@WenLiang619
Copy link

WenLiang619 commented Nov 29, 2024

两张截图是在选取元素时出现的问题:依次选中“家用电器”和“办公”想实现对导航栏各个文字条目选取,发现不行。
1 (2)
2

@WenLiang619
Copy link
Author

wet
通过设计工具 无法实现对所有拟提取元素进行选中。通过工具自动生成的xpath:
/html/body/div[1]/div[6]/div[1]/div[1]/div[1]/ul[1]/li[1]/a[1]
需要改成/html/body/div[1]/div[6]/div[1]/div[1]/div[1]/ul[1]/li/a 或者 //a[@Class='cate_menu_lk'] 就可以了。 为什么视频中可以通过工具自动选中所有的a链接文本呢?

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

1 participant