![]() Step 1) We have to login and enter the text as “GURU99” in “Enter a name here” textbox. Spec file: This File contains the logic and locators to interact with the application.Chrome is the default browser for Protractor. Configuration file: This File helps protractor to where the test files are placed (specs.js) and to talk with Selenium server (Selenium Address).Protractor needs two files to run, a spec file and configuration file. Sample AngularJS application testing using Protractor Now, if you go to the following URL ( in your browser, you will actually see the Web driver manager running in the background. To start the web driver manager, the following command needs to be executed from the command prompt. Once Protractor is used to run any test, the web driver will automatically load and run the test in the relevant browser. This step will run the web driver manager in the background and will listen to any tests which run via protractor. This can be done by running the following command in the command prompt. After Protractor is installed, the web driver manager needs to be updated to the latest version. The web driver manager is used for running the tests against the angular web application in a specific browser. (Steps 3 and 4 are Optional but recommended for better practice) ![]() ” If successful it will show the version as like in below screenshot. ![]() Step 2) Check the installation and version using “ Protractor –version. The above command will download the necessary files and install Protractor on the client system. Step 1) Open command prompt and type “npm install –g protractor” and hit Enter. You can find this installation steps in the following link. NPM (Node.js)NodeJS Installation, we need to install NodeJS to install Protractor. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |