![]() ![]() seleniumServerJar: './node_modules/protractor/selenium/selenium-server-standalone-2.40.0.jar', location of the Selenium JAR file and chromedriver, use these if you installed protractor locally If you installed Protractor locally, be sure to set the seleniumServerJar and chromeDriver options with the location of these files. Protractor has a sample config file available with all the configuration options. The Selenium webdriver has the ability to execute tests against multiple browsers concurrently, making cross-browser testing easy. Your Protractor test will send requests to this server to controlĬreate a file called protractor-conf.js in the test directory and add the following configuration to it. This will start up a Selenium Server and will output a bunch of info Now start up a server with: webdriver-manager start The webdriver-manager is a helper tool to easily get an Protractor -version to make sure it's working. This will install two command line tools, protractor and Use npm to install Protractor globally with: npm install -g protractor If you have to set username and your password have an then surround it in quotes reset proxy for npm: Run this commands in a console, for http and https We need to setup the npm to work behind a proxy so we can run protractor: ![]() Installing Protractor npm windows environment behind proxyįirst we need to install or update NodeJs (npm comes with node now), you can click here to get the latest version. In this post we going to assume that you know what is Node, npm, etc so we don't going to explain this. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |