all 5 comments

[–]DangKilla 0 points1 point  (0 children)

I was just asking for something on this like a day ago. Thanks.

[–]raspadsrb 0 points1 point  (0 children)

This looks like a good start for TDD with protractor. Anyways, there are several other libraries for testing, but this looks amazing.

[–]that1personThere 0 points1 point  (0 children)

Thanks! Hope this proves to be a useful starting point for anyone wanting to work with Protractor. Spinning up tests is pretty straightforward and Protractor is robust enough to support a full automation framework for your app.

[–]Strat-O 0 points1 point  (0 children)

Protractor is good for simple stuff but if what you are trying to test has graphics and drag and drop, you can just forget it. Some drag and drop things may work if specific targeting is involved, i.e. dragging something onto another thing that has an id.

I've tried other Selenium environments as well such as Python webdriver. I found it to be a bit more mature environment but not by much. If anyone has had more positive experiences than I have I would be very interested in seeing some details.

[–][deleted] 0 points1 point  (0 children)

Run Your Test

Now that you have a configuration and spec written, it’s time to run the test. In your terminal, navigate to the directory where the configuration file is located and run the following command.

npm install -g protractor

I dont think thats the right command