Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New actions format #63

Open
heynemann opened this issue Sep 27, 2010 · 1 comment
Open

New actions format #63

heynemann opened this issue Sep 27, 2010 · 1 comment
Labels

Comments

@heynemann
Copy link
Owner

Allow users to specify actions as:

@action('And I click something')
def click_something():
//click something

This would reduce A LOT the noise generated by actions. A lot of repeated code would just go.

@ricobl
Copy link
Contributor

ricobl commented Sep 29, 2010

I think you already know that, but it should be nice to have a context and arguments, just like current actions.

@action('And I click (\d+) times on (?P<element>\w+)')
def click_x_times_on_element(context, num, element):
    // click n times...

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

No branches or pull requests

2 participants