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

网站提示框/弹窗问题求助(Seeking Help for Website Prompts and Popups) #223

Closed
ReverseSacle opened this issue May 11, 2024 · 1 comment

Comments

@ReverseSacle
Copy link

ReverseSacle commented May 11, 2024

爬取→某直聘网站时,每个招聘卡片都需要点击一次,每次点击卡片后会新建一个标签页,在新标签页中获取完信息后,就关闭该标签页,重复该操作2~3遍后,网站主网页会弹出登录提示框。我需要执行login_card.ele('x://div[contains(@class,"job-info")]').click(),但是这个登录框是突然出现的,ChromiumPage获取的数据中完全没有这个dom节点,我想问问这种问题该如何处理?

When crawling a recruitment website, I need to click on each recruitment card. Every time I click a card, a new tab is created. In the new tab, I collect the necessary information and then close the tab. The login dialog appears as soon as I repeat this process. I intend to execute the command login_card.ele('x://div[contains(@class,"job-info")]/click()'). However, the login dialog appears abruptly, and the retrieved data from ChromiumPage lacks the DOM node for the login card entirely. What can I do to resolve this issue?

@ReverseSacle ReverseSacle changed the title 网站提示框/弹窗问题求助 网站提示框/弹窗问题求助(Seeking Help for Website Prompts and Popups) May 12, 2024
@ReverseSacle
Copy link
Author

已解决。

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