Skip to content

Click Element

Naibo Wang edited this page Feb 15, 2023 · 4 revisions

We always need to click element, such as link, button on web pages to open new page, go to next page, etc. Here, we need to define the "Click Element" operation for EasySpider to automatically click element on the web page when executing tasks.

Define Operation (at the Task Design stage)

The click element operation is very easy to define:

  1. Select the element we want to click by right-click or F7.

  2. Select the Click this element (link/button) option.

That's all! Then the "Click Element" operation will be added to the Workflow Manager.

image

image

Operation Properties

This section shows the available properties of "Click Element" operation in the Workflow Manager.

  • Option Name: the option name, click the "Confirm" button to refresh the name after modification.

  • Use text inside the Loop: whether locate the element with XPath set in the "Loop" operation instead of the "XPath" defined in this operation. This option will only appear when "Click Element" operation is inside the "Loop" operation. E.g., we can use this option to loop click the "Next Page" button many times to collect many pages' product information at ebay.com.

  • XPath: XPath of the textbox, generated by EasySpider and can be modified freely by user.

  • After executed, whether scroll down: Yes or No, means when the new web page is loaded after click an element, whether or not to scroll the web page to the bottom. This is used when some web page requires user to scroll down to get all available contents, such as twitter where users will view posts one by one by scroll their mouses down.

  • Scroll Times: when set "Yes" for the scroll down option above, how many times will EasySpider automatically scroll down to the bottom, because in some web pages, we often need to scroll many times to make all contents loaded.

  • Seconds after executed: how long should EasySpider wait after automatically input text into the textbox.

Execute Operation (at the Task Invocation stage)

When executing tasks, the element will be automatically clicked when we set the "Click Element" operation.

Clone this wiki locally