Q: How can I address modal windows?

 

Description:

The website I'd like to extract sometimes(not always) shows a modal window.
When a task faces the modal window, it can't work well and fails by time out.
I think I can use "Click Item" action to close the modal window if it always appears but it doesn't always so that the task can't find the item to click and stops.

 

A:

If you run into some popups, there are three ways to deal with them:

a) If the popup needs to be closed by clicking it, you will need to create a ‘Click Item' action for the close button. It works well for both 'Local Extraction' and 'Cloud Extraction'.

b) If the popup closes when you click the anywhere else on the web page, then you need to click anywhere else on the web page and close the setting up windows to continue configuring the scraping task.

If you run the task with 'Local Extraction', you will need to manually close it; 
If you run the task with 'Cloud Extraction', a) solution is suggested.

c) If the popup will be automatically closed after waiting for a few seconds, you can set a longer timeout for the next action while you are configuring your task. Thus Octoparse will wait till the popup disappears before executing the next action.

 

 

btn_sidebar_use.png
btn_sidebar_form.png
当社ウェブサイトは、利便性、品質維持・向上を目的に、Cookieを使用しております。詳しくはプロキシーをご確認ください。Cookieの利用に同意頂ける場合は、「同意する」ボタンを押してください。同意頂けない場合は、ブラウザを閉じて閲覧を中止してください。
同意する 閉じる