You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
ReverseSacle
changed the title
网站提示框/弹窗问题求助
网站提示框/弹窗问题求助(Seeking Help for Website Prompts and Popups)
May 12, 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?The text was updated successfully, but these errors were encountered: