Zynk Workflow Documentation

This task will perform a series of actions on the web. For example, this may involve browsing to a particular web page, entering some text and then clicking a button. The task works using Selenium WebDriver and PhantomJS.

Note: This task is not included in the standard installation of Zynk. If you can’t see this task in the task library, you can install from Extensions -> Extensions Manager -> Additions Tab. You will need to restart Zynk in order for the tasks to show in the task library.

Settings

Action List

Required
The list of actions to perform on the web. The actions will be performed in sequential order. See below for more details on configuring the list of actions.

Zynk Settings

See Common Task Settings

Configuring the Action List

The action list is configured by clicking the ellipsis (…) button next to the Action List setting. You will see a screen like the one below.

  1. Click the ‘Add’ button to add a new action to the list.
  2. Choose the type of action to perform from the drop down. The available actions are documented below.
  3. The action’s settings will appear here. Configure them according to the instructions for the action shown below.
  4. Any unwanted actions can be removed by clicking the red cross. Actions can be re-ordered by clicking and dragging.
  5. Click OK once all of the actions have been added and configured.

Actions

There are several different actions supported by the task. Each one is outlined below, along with a description of each of it’s settings.

Browse To

This action will browse to a specified web page. It only has one setting:

Click

This action will click a button on the current web page. It has the following settings:

Custom Action

This action will execute a custom razor script. It has the following settings:

Download File

This action will download a file from a specified URL. It has the following settings:

Execute Javascript

This action will execute Javascript on the current web page. It has the following settings:

Save Page

This action will save the current web page to a HTML file. It only has one setting:

Set Field Value

This action will set the value of a text box, drop down or check box on the current web page. It has the following settings:

Wait For Element

This action will wait for an element to appear on the current web page. It can be useful when dealing with web pages where the content is loaded dynamically, and can be used to make the task wait until certain content has loaded. It has the following settings:

Wait For Javascript

This action will wait until any scripts on the page have finished executing. t can be useful when dealing with web pages where the content is loaded dynamically, and can be used to make the task wait until certain content has loaded. It has the following settings:

Examples

Performing a Google search for ‘Zynk’:

  1. Add a ‘Browse To’ action to the list, and set the URL http://www.google.co.uk
  2. Add a ‘Set Field Value’ action to the list, set ‘Lookup Element By’ to Id, set ‘Element Lookup Value’ to ‘lst-ib’, and set ‘Value’ to ‘Zynk’.
  3. Add a ‘Click’ action to the list, set ‘Lookup Element By’ to Name and set ‘Element Lookup Value’ to ‘btnK’.
  4. Add a ‘Save Page’ action to the list, and set ‘Output File’ to ‘search_results.html’.

TIP: To find the correct Element Lookup Value to use for an element, open the web page in Firefox or Chrome, right click the element, and click ‘Inspect Element’.


Back | Edit on Github