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

Action system redesign #30

Open
kidk opened this issue Feb 22, 2017 · 1 comment
Open

Action system redesign #30

kidk opened this issue Feb 22, 2017 · 1 comment
Milestone

Comments

@kidk
Copy link
Owner

kidk commented Feb 22, 2017

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"
@kidk kidk mentioned this issue Feb 22, 2017
10 tasks
@kidk kidk added this to the beta milestone Aug 16, 2017
@kidk
Copy link
Owner Author

kidk commented Aug 16, 2017

This has been implemented in the development branch. Comments are still welcome.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant