

*To determine if the web app was built using angular, open the console and search for ng-version(angular version). You’re testing non-Angular sites or pages, such as a separate login page. You’re testing behavior during $http or $timeout (e.g., a ‘loading’ message) The simple answer is that it makes protractor not wait for Angular promises, such as those from $http or $timeout to resolve. The only way our scripts were working was to use ignoreSynchronization=true’ We had to learn the hard way in one of our projects.

Note: Although the tool is written in angular, not all of it is written in angular. To create a new branch with the contents of the master branch and switch to a newly created branch:īrowser.ignoreSynchronization=true or false
#RUN NPM INSTALL WEBSTORM CODE#
Create a folder / Write new code in WebStorm.Open the terminal and navigate to the specific folder (‘cd Desktop/AmazingProject’).Create a directory to contain the project.Then change the WebStormprotractor options to: “–suite sandbox” (it will run the sandbox script) or “–suite all”(it will run the “all” script) Use these commands to make a new git project: ! Pay attention here as we installed protractor globally, we must specify the location of the protractor package in global node_modules and NOT the local one.Ĥ.To change the test suite, change the protractor config (located in the WebStorm edit configuration panel). Specify the Node.js interpreter to use.ģ.Specify the location of the protractor package and the path to the configuration file. The Run/Debug Configuration: Protractor dialog box opens.Ģ. Click on the toolbar and select Protractor from the list. Start using WebStorm with Protractor by following these steps:ġ.Open Run > Edit Configurations on the main menu. To check the webdriver version use this command line:
#RUN NPM INSTALL WEBSTORM UPDATE#
Webdriver-manager update (this command will install all needed packages needed by protractor) So, we thought we’d help other people by filling in the gaps we noticed.īefore you start using protractor, make sure all the dependencies have been installed correctly. In our case, following the Protractor’s guide didn’t help us out too much when it came to starting an automation project.
