Skip to content
This repository was archived by the owner on Aug 4, 2018. It is now read-only.
This repository was archived by the owner on Aug 4, 2018. It is now read-only.

Action system redesign #30

Description

@kidk

The action system needs a bit of a rework. I want to make it more flexible and have it fit the browser system a bit more. Converting the system to yaml will also allow a user to leave comments in the file without the need for the commentjson module.

Couple of examples:

# Old method
  - action: set_value
    selector: input[name=password]
    value: isAWESOME

# New method
  - action: set
    select: "input[name=password]"
    attribute: value
    value: isAWESOME
# Old method
  - action: sleep
    value:
      min: 1000
      max: 5000

# New method
  - action: wait
    time: 
      min: 1000
      max: 5000

# This replaces wait_for_element
  - action: wait
    select: "#element" 
    time:
      min: 1000
      max: 5000  
# Old method
  - action: submit
    selector: "#loginForm"

# New method
  - action: event
    type: submit
    select: "#loginForm"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions