Created
April 29, 2013 06:58
-
-
Save karlkfi/5480124 to your computer and use it in GitHub Desktop.
BAS action chain.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@page (domain = "domain.com") | |
(path = "/email-form/") { | |
status-code: 200; | |
input.email { | |
text: set("[email protected]"); | |
} | |
input.submit:click() { | |
status-code: 200; | |
@import("./next-page-sheet.bas") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Interesting ideas. I think it's a very hard problem to solve, and will probably require a lot of discussion. :)
One of the key concepts/ideas I had with Bas was that everything should be declarative, not procedural, and relationships between parts of a page and its assertions should be able to be expressed abstractly. Any solution to solve action chaining should meet that as a fundamental aspect of how it works.
(Not saying that your example doesn't do this - but it's worth remembering.)
I'm fairly confident that there's an elegant way to specify lists of actions and assertions along the way. I'll have a think about the possible syntax and post examples/mockups as I think of them!