Angular enhancements to the Ruby webdriver bindings based on protractor.
Deprecated: Use angular/blocking-proxy instead.
See the docs folder for the documentation.
Tests run against protractor's testapp.
The latest versions of Chrome and Firefox are required. The tests will not run on old versions.
cd protractor/testapp; npm install
npm start
Test app will start onhttp://localhost:8081/
Notes about protractor / angular testing.
--
npm install -g protractor
Install protractorwebdriver-manager update
Install webdriver jarprotractor --elementExplorer
Start protractor repl.exit
Exit REPL session
Startup selenium server using the jar or webdriver manager.
java -jar selenium-server-standalone-2.45.0.jar
webdriver-manager start
Start element explorer using the standalone server to see the logs (protractor v2.1.0 or newer).
protractor --elementExplorer --browser firefox --seleniumAddress http://127.0.0.1:4444/wd/hub
Alternatively, run from source:
node ./protractor/bin/webdriver-manager update
node ./protractor/bin/protractor --elementExplorer --browser firefox --seleniumAddress http://127.0.0.1:4444/wd/hub
browser.get('https://angularjs.org/')
cd protractor/; node lib/cli.js spec/basicConf.js
Modify basicConf to target only the single spec.
specs: [
'basic/synchronize_spec.js'
],
Modify environment.js to default to firefox.
'browserName':
(process.env.TEST_BROWSER_NAME || 'firefox'),
Make sure the test app is running.
Use nvm to manage node versions
brew install nvm
Update~/.bash_profile
as instructednvm install stable
Install latest stable version of nodenvm alias default stable
Set stable as the default node for new terminals