Protractor snippets
While answering and asking questions on SO, I've seen and created multiple short snippets for various tasks. For example:
- http://stackoverflow.com/a/34502670/771848
- http://stackoverflow.com/a/27908252/771848
- http://stackoverflow.com/a/21994788/771848
- etc
Do you think it would be a good idea to have something like a Snippets page on http://angular.github.io/protractor/#/ where we can add some code samples for common/popular tasks?
I really think real-world examples is something we are missing documentation-wise. Thanks.
Sure, I think that's reasonable. Just add a file at 'docs/snippets.md` and a link to it around here. The website generation script will take care of the rest.
I think this is a great idea (it would help with a lot of common questions).
This is awesome! We need more examples:
Here are some i've found:
http://stackoverflow.com/a/29397800/ - get current url
+1
What kind of Snippets are expecting here? Depending on which snippets , i would create a PR around it.
@jags14385 Probably any repetitive modular tasks one would do frequently. Login, click a button, select an iframe, scroll, etc.
All right, That helps. Will add those.
Closing in favor of https://github.com/angular/protractor/issues/3376