Comments (6)
Define short-term? :)
I definitely definitely have this on my todo list, but it's not item 1.
from protractor.
How about I run protractor.js through a doc parser and see if we can get some semi-meaningful documentation out of it?
Would you recommend using protractor now even with 1.2 still on the horizon? I don't want to write all my e2e tests using karma + jasmine if the Angular team will be moving to protractor. (Not part of this issue, but need to ask)
from protractor.
I'd definitely accept any doc generating!
Angular end2end tests will be moving to protractor, probably sometime in the next quarter. How are you writing e2e tests in jasmine at the moment? Or do you mean using the angular scenario runner?
Protractor is definitely still v0.X and has issues to iron out - but it's built on top of WebDriverJS, which is largely solidified. So, I think if you invest in tests in protractor you won't be wasting time. Depends on your tolerance for a couple quirks.
from protractor.
EDIT: I realize the below question is addressed in issue #21 . I will leave here in case someone else runs across the issue.
I don't mind the quirks, since selenium webdriver is what our QA team is used to.
Your code doesn't lend itself precisely to any auto doc-generating framework, but I think it could easily be coerced into it. I'll take a look and possibly set this up for me and anyone else ready to make the switch to protractor.
A quick question: is there a way to wait until angular is done bootstrapping (ng-clock would be satisfied) to start running tests. My spec looks like this:
describe('app', function() {
var ptor;
ptor = protractor.getInstance()
beforeEach(function() {
ptor.get('webapp/app/index.html#/home')
})
it('should load the home page', function() {
body = ptor.findElement(protractor.By.tagName('body'));
body.isDisplayed().then(function() {
expect(body).toBeDefined()
})
})
})
And when run I get:
Finished in 0.007 seconds
1 test, 0 assertions, 0 failures
So it worked, but it never got a chance to run that expect() statement. Any idea what's going on?
I'm sure I'm just doing something simple incorrectly, but there's no docs to help solve it :)
I've forked the project and will look into generating docs.
from protractor.
Some auto-generation is now done, see https://github.com/angular/protractor/blob/master/docs/api.md
It's super hacky and still could be improved a ton.
from protractor.
I think this issue is broad enough that it's no longer useful. I'm gonna close - please open new issues for specific documentation questions!
from protractor.
Related Issues (20)
- Support on Protractor after 2022 and any plans for licensed version HOT 7
- Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. HOT 4
- Callback function is taking long after completing the run in the protractor testcase
- [BUG] Upgrade transitive dependency "[email protected]" to fix CVE-2021-3918 HOT 1
- [BUG] input with dropdown use clear the selected tag won't remove, and click will click on the text not the element.
- Is protractor no longer working when using Angular 13? HOT 8
- protractor.Key.chord() broken in the latest chromedriver HOT 3
- Prototype Pollution in minimist
- qs version CVE-2021-44907 (High) detected in my repo dependencies
- need support for finding element under shadow root HOT 3
- Feature request - html to pdf
- Git.io deprecation notice
- Getting the ERROR "This driver instance does not have a valid session ID (did you call WebDriver.quit()?) and may no longer be used." When I try to use restart() or close() method HOT 2
- Deprecated warning with Protractor HOT 2
- Interview partners for research about communication in GitHub projects wanted
- Can existing Protractor automation scripts developed in year 2020 supported on windows 2019 OS server
- webdriver Manager , chrome version higher then 114 HOT 3
- Migrate Protractor to Playwright
- Meera HOT 1
- Performance Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protractor.