Giter VIP home page Giter VIP logo

protractor-rails's Introduction

Protractor::Rails

This gem helps you seamlessly setup, run and maintain a angularjs e2e test suite using protractor in a rails application.

Dependencies

Make sure you have Nodejs installed and that you do not need to use sudo to install npm packages

Installation

Add this line to your application's Gemfile:

gem 'protractor-rails'

And then execute the following command to load dependencies on your machine:

$ rake protractor:install

You can test that everything has been set up correctly using the command below. This command will run protractor's example configuration and test file against the http://angular.org website. If everything starts up ok and runs till the end giving you a summary of test results then you are 'good to go'!

$ rake protractor:example

Usage

Initialization

You can initialize your app with protractor rails by running

$ rake protractor:init

Dummy test in local environment

This will generate and template configuration and a dummy example test. Once you have run this you can test that everything has been set up correctly in your local environment by running the following command:

$ rake protractor:spec

This will run a local rails test server, the webdriver selenium server and run protractor against the example_spec.js If everything starts up and runs cleanly you should see the test summary of 1 test 1 pass and 0 failures.

Running your tests

When the rake protractor:init script is run it will create a file spec/javascripts/protractor.conf.js. This file is where you can configure the tests that should be run. [See Protractor Documentation for more details] (https://github.com/angular/protractor/blob/master/docs/getting-started.md).

In this file you can provide patterns for matching your protractor specs. NB: It is recommended that you use a subdirectory such as spec/javascripts/protractor_specs for easy matching and organization

Example

If I have a directory set up for protractor specs in spec/javascripts/protractor_specs/, my configuration file would look something like the below

  // An example configuration file.
  exports.config = {
    // The address of a running selenium server.
    seleniumAddress: 'http://localhost:4444/wd/hub',

    // Capabilities to be passed to the webdriver instance.
    capabilities: {
        'browserName': 'chrome'
    },

    // If you would like to test against multiple browsers, use the multiCapabilities
    // configuration option instead.
    multiCapabilities: [{
        'browserName': 'firefox'
    }, {
        'browserName': 'chrome'
    }],

    // Spec patterns are relative to the current working directly when protractor is called
    specs: ['protractor_specs/**/*.js '],

    baseUrl: 'http://localhost:4000',

    // Options to be passed to Jasmine-node.
    jasmineNodeOpts: {
        showColors: true,
        defaultTimeoutInterval: 30000
    },

    // Specify a version of Jasmine you wish to use. Default version is v1.3
    // Jasmine v2 has many more built-in functions to help with testing,
    // such as beforeAll and afterAll.
    // Jasmine v2 documentation can be found here:
    // http://jasmine.github.io/2.0/introduction.html
    framework: 'jasmine2'
};

Once you have setup your tests as above, running rake protractor:spec will pick up new tests and run them for you.

You can specify the binding for the rails server as an environment variable: rake protractor:spec rails_binding=hostname_or_ip.

Suites

If you want to organise your tests then you can use suites. Replace the specs: line in the above with the following

suites: {
    login: 'protractor_specs/login/*.js',
    user: 'protractor_specs/user/*.js'
},

You can run specific test suites by passing in options to the rake task as per the below example.

$ rake protractor:spec -- --suite suite-name

NOTE You must have the -- first otherwise rake will think the arguments are for rake instead of the task

Run in debug mode

$ DEBUG=true rake protractor:spec

Run a specific spec file

$ rake protractor:spec -- --specs spec-filename

Setup and teardown

There is a task to reset your database to remove items you have created during your tests. This will also seed your database with any fixtures you might have prepared

$ rake protractor:cleanup

This will reset your test database and load in seeds in db/seeds.rb into your test database only.

There is also a convenience function for running cleanup after you have run your tests ready for the next test run.

$ rake protractor:spec_and_cleanup

Task Options

rake protractor:spec

You can control verbosity of logging with the following ENV flags:

  • rake protractor:spec nolog=y # all quiet
  • rake protractor:spec nolog_selenium=y # no selenium (just drivers)
  • rake protractor:spec nolog_rails=y # no rails

Notes about integration tests

Integration tests are MUCH faster than testing things yourself but they are MUCH slower than running unit tests or rspec tests. Keep your integration tests to a minimum and test as much as possible with your normal rails test suite.

Contributing

Contributions, questions, comments, threats or suggestions are welcome.

  1. Fork it (http://github.com/my-github-username/protractor-rails/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

protractor-rails's People

Contributors

cawabunga avatar danielwestendorf avatar fdibartolo avatar gdpelican avatar jonricaurte avatar letmein avatar letmein-test avatar map7 avatar progm avatar rharriso avatar ryananthonydrake avatar thewarpaint avatar tyronewilson avatar westwg avatar williscool avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

protractor-rails's Issues

Running rake protractor:init fails after

$ rake protractor:install
$ rake protractor:init

Console error:

rake aborted!
undefined method `configuration' for Protractor:Module
lib/tasks/install.rake:42:in `block (2 levels) in <top (required)>'
/Users/ryandrake/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
/Users/ryandrake/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => protractor:init
(See full trace by running task with --trace)

--suite not working

It seems that --suite param is not working. It runs all specs instead.

Here my usage:

rake protractor:spec -- --suite homepage

Here's my config:

// An example configuration file.
require('coffee-script');

exports.config = {
    // The address of a running selenium server.
    seleniumAddress: 'http://localhost:4444/wd/hub',
    // Capabilities to be passed to the webdriver instance.
    capabilities: {
        'browserName': 'chrome'
    },

    params: {
        login: {
            user: 'user-1',
            password: '1234'
        }
    },

    suites: {
        login: 'protractor_specs/login/*.js',
        profile: 'protractor_specs/profile/*.js',
        homepage: 'protractor_specs/homepage/*.js'
    },
    // Spec patterns are relative to the current working directly when
    // protractor is called.
    // specs: ['protractor_specs/**/*.js'],

    baseUrl: 'http://localhost:4000',

    // Options to be passed to Jasmine-node.
    jasmineNodeOpts: {
        showColors: true,
        defaultTimeoutInterval: 30000,
    }
};

What I'm missing?

Create a debug task

In order to make debug working with protractor you need to run it in debug more, i didn't find any task to allow that, could you please make any?
Regards

spec_and_cleanup does not run cleanup

When I run the 'bundle exec rake protractor:spec_and_cleanup' it doesn't want to run the cleanup task

Here is the error;

kill protractor rails tests server...
kill webdriver server...
kill left over selenium processes...
Selenium Standalone has exited with code null

The work around that I'm doing is in a bash script with the following, this works.

#!/usr/bin/env bash

bundle exec rake protractor:spec
bundle exec rake protractor:cleanup

However the following does not work

bundle exec rake protractor:spec protractor:cleanup

It seems that once protractor:spec is finished it doesn't continue on as it gets an error with selenium

Less verbose output

Have you thought about an option to configure a less verbose output? It'd be great to have it.

Dummy test failing out of the box

Sorry if this is a dummy issue ( hah ) but the dummy test in local environment step is failing for me with this Failure message:

timeout: timed out after 30000 msec waiting for spec to complete

I ran rake protractor:init and didn't modify the generated files at all. Upon first run it fails as described (full message at the bottom)
rake protractor:example works fine. I tried modifying the protractor.conf.js to exclude all files but the example_spec.js file but got the same results.

Full message from protractor:spec on example file here:

$ rake protractor:spec
webdriver PID: 39865
Rails Server PID: 39866
Waiting for servers to finish starting up....
Starting selenium server
Starting Rails server on port 4000 pid file in tmp/pids/protractor_test_server.pid
seleniumProcess.pid: 39869
Aug 06, 2014 4:55:38 PM org.openqa.grid.selenium.GridLauncher main
INFO: Launching a standalone server
Setting system property webdriver.chrome.driver to /usr/local/lib/node_modules/protractor/selenium/chromedriver
16:55:38.367 INFO - Java: Oracle Corporation 24.51-b03
16:55:38.367 INFO - OS: Mac OS X 10.9.4 x86_64
16:55:38.381 INFO - v2.42.2, with Core v2.42.2. Built from revision 6a6995d
16:55:38.473 INFO - Default driver org.openqa.selenium.ie.InternetExplorerDriver registration is skipped: registration capabilities Capabilities [{platform=WINDOWS, ensureCleanSession=true, browserName=internet explorer, version=}] does not match with current platform: MAC
16:55:38.520 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
16:55:38.521 INFO - Version Jetty/5.1.x
16:55:38.522 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
16:55:38.524 INFO - Started HttpContext[/selenium-server,/selenium-server]
16:55:38.524 INFO - Started HttpContext[/,/]
16:55:38.552 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@482ef8a9
16:55:38.553 INFO - Started HttpContext[/wd,/wd]
16:55:38.561 INFO - Started SocketListener on 0.0.0.0:4444
16:55:38.561 INFO - Started org.openqa.jetty.jetty.Server@213401d7
=> Booting WEBrick
=> Rails 4.1.4 application starting in test on http://0.0.0.0:4000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
[2014-08-06 16:55:40] INFO  WEBrick 1.3.1
[2014-08-06 16:55:40] INFO  ruby 2.1.1 (2014-02-24) [x86_64-darwin12.0]
[2014-08-06 16:55:40] INFO  WEBrick::HTTPServer#start: pid=39868 port=4000
Using the selenium server at http://localhost:4444/wd/hub
16:55:44.399 INFO - Executing: [new session: Capabilities [{count=1, browserName=chrome}]])
16:55:44.410 INFO - Creating a new session for Capabilities [{count=1, browserName=chrome}]
Starting ChromeDriver (v2.10.267517) on port 14037
Only local connections are allowed.
16:55:46.054 INFO - Done: [new session: Capabilities [{count=1, browserName=chrome}]]
16:55:46.077 INFO - Executing: [set script timeoutt: 11000])
16:55:46.084 INFO - Done: [set script timeoutt: 11000]
A Jasmine spec timed out. Resetting the WebDriver Control Flow.
The last active task was: 
unknown
F

Failures:

  1) Example Specifcation should be able to find the rails test server
   Message:
     timeout: timed out after 30000 msec waiting for spec to complete
   Stacktrace:
     undefined

Finished in 32.697 seconds
1 test, 2 assertions, 1 failure

16:56:18.807 INFO - Executing: [delete session: 06849015-7bfc-4133-8b0e-46de79b97153])
16:56:19.368 INFO - Done: [delete session: 06849015-7bfc-4133-8b0e-46de79b97153]
Waiting to shut down cleanly.........
killing running protractor processes
kill protractor rails tests server...
kill: 39895: No such process
kill webdriver server...
kill: 39901: No such process
kill left over selenium processes...
Selenium Standalone has exited with code null
kill: 39907: No such process

And my Gemfile, in case that helps:

source 'https://rubygems.org'

ruby '2.1.1'
gem 'rails', '4.1.4'
gem 'bcrypt', '3.1.7'

gem 'jquery-rails', '3.1.1'
gem 'sass-rails', '4.0.2'
gem 'bootstrap-sass', '3.1.0.1'
gem 'angularjs-rails', '1.2.19'
gem 'uglifier', '2.5.1'

gem 'pg', '0.17.1'
# Needed to run following command to install pg with Postgres.app
# gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.3/bin/pg_config

gem 'newrelic_rpm'
gem 'airbrake'
gem 'countries'
gem 'country_select'
gem 'memcachier'
gem 'dalli'
gem 'mandrill-api'

gem 'rails_admin'

group :development do
  gem 'guard-livereload', '~> 2.1.1', require: false
  gem 'rack-livereload'
end

group :development, :test do
  gem 'rspec-rails'
  gem "jasmine", github: "pivotal/jasmine-gem"
  gem 'protractor-rails'
end

group :production do
  gem 'rails_12factor', '0.0.2'
end

Problem with rake protractor:install

I have already installed the gem locally into my project, but when I run rake protractor:install, I get this message:

Don't know how to build task 'protractor:install'

Any ideas?

Webpage can't be loaded

Hey Tyrone,

Using just protractor (the npm package) my simple setup works well, but when I run it through rake protractor:spec it seems like protractor-rails opens the browser and tries to load the page before the server is actually started.

screen shot 2014-10-27 at 11 32 49

Right after the browser opens and "This webpage is not available" is shown, the standard Rails server output is shown on my commandline:

=> Booting WEBrick
=> Rails 4.1.6 application starting in test on http://0.0.0.0:4000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)

A little further on it says "Error: Angular could not be found on the page http://localhost:4000/" though:

Message:
     Error: Angular could not be found on the page http://localhost:4000/ : retries looking for angular exceeded
   Stacktrace:
     Error: Angular could not be found on the page http://localhost:4000/ : retries looking for angular exceeded
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16
    at process._tickCallback (node.js:415:13)
==== async task ====
WebDriver.executeScript()
    at [object Object].<anonymous> (/Users/ruben.swieringa/Development/caren-redesign/spec/javascripts/test.coffee:4:15)
==== async task ====
Asynchronous test function: it()
Error
    at [object Object].<anonymous> (/Users/ruben.swieringa/Development/caren-redesign/spec/javascripts/test.coffee:3:12)
    at Object.<anonymous> (/Users/ruben.swieringa/Development/caren-redesign/spec/javascripts/test.coffee:2:3)
    at Object.<anonymous> (/Users/ruben.swieringa/Development/caren-redesign/spec/javascripts/test.coffee:9:4)
    at Object.loadFile (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/register.js:16:19)
    at require (module.js:380:17)
    at _fulfilled (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:797:54)
    at self.promiseDispatch.done (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:826:30)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:759:13)
    at /usr/local/lib/node_modules/protractor/node_modules/q/q.js:525:49
    at flush (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:108:17)
    at process._tickCallback (node.js:415:13)
    at startup (node.js:119:16)
    at node.js:902:3

It doesn't seem to run the actual expect() call in my test. Calling sleep() on the protractor instance in javascript doesn't help (regardless of the time I let the test sleep).

Back when kill_rails still mismatched the start-command from the rails task I could actually run rake protractor:spec once, have it fail, try it again, and then have it succeed (because the server would still be running from the previous time).

Do you have any tips or ideas on what might be the culprit here? Running rake protractor:example succeeds.

My situation, as far as relevant:

  • Protractor 0.0.8
  • Rails 4.1.6
  • Ruby 2.1.1
  • OS X 10.9.5 (also fails on 10.10)
// protractor.conf.js
exports.config = {
  seleniumAddress: 'http://localhost:4444/wd/hub',
  specs: [ 'test.coffee' ]
}
# test.coffee
describe "yes", ->
  it "doesnt", ->
    browser.get 'http://localhost:4000'
    expect( browser.getTitle() ).toEqual 'Caren Cares'

Thanks for the time.

- Ruben

rake protractor:init template directory structure missing templates folder?

Thanks for this gem, looks great. One issue I noticed in running rake protractor:init was that the template files the task tried to copy were using the wrong path:

Creating template configuration file in spec/javascripts/protractor.conf.js
cp: /Users/Sterling/Code/myproject/vendor/bundle/ruby/2.0.0/gems/protractor-rails-0.0.9/spec/javascripts/protractor.conf.js/protractor.conf.js: No such file or directory

Seems it should be ../protractor-rails-0.0.9/spec/javascripts/templates instead (in the templates subfolder)?

Any idea how I'd get login working on a non-Angular page with Devise login?

My login_spec.rb:

var LoginPage = require('./login.po.js');
describe('login page', function() {
 var loginPage = new LoginPage();

  var params = browser.params;

  beforeEach(function() {
     isAngularPage(false);
  });

  it('should login successfully', function() {
    browser.get('/accounts/login');
    dvr.findElement(by.css('#user_email')).sendKeys( params.login.user );
    dvr.findElement(by.css('#user_password')).sendKeys( params.login.password );
    dvr.findElement(by.css('.btn-account-primary') ).click();
    expect(browser.driver.findElement(by.css('#user_email')).getText()).toEqual( params.login.user );
  });
});

Not sure what to put into my login.po.js:

var LoginPage = function() {
  // ...
};
module.exports = LoginPage;

kill: invalid option -- '9'

I'm getting this error after running protractor through protractor-rails rake task like so

bundle exec rake protractor:spec nolog=y

Error I get;

kill protractor rails tests server...
kill webdriver server...
[2015-07-15 15:25:42] FATAL SignalException: SIGTERM
    /usr/local/rbenv/versions/2.1.5/lib/ruby/2.1.0/webrick/server.rb:170:in `select'
    /usr/local/rbenv/versions/2.1.5/lib/ruby/2.1.0/webrick/server.rb:170:in `block in start'
    /usr/local/rbenv/versions/2.1.5/lib/ruby/2.1.0/webrick/server.rb:32:in `start'
    /usr/local/rbenv/versions/2.1.5/lib/ruby/2.1.0/webrick/server.rb:160:in `start'
    /usr/local/rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.7/lib/rack/handler/webrick.rb:13:in `run'
    /usr/local/rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.7/lib/rack/server.rb:268:in `start'
    /usr/local/rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.21/lib/rails/commands/server.rb:70:in `start'
    /usr/local/rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.21/lib/rails/commands.rb:55:in `block in <top (required)>'
    /usr/local/rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.21/lib/rails/commands.rb:50:in `tap'
    /usr/local/rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.21/lib/rails/commands.rb:50:in `<top (required)>'
    script/rails:6:in `require'
    script/rails:6:in `<main>'
[2015-07-15 15:25:42] INFO  going to shutdown ...
[2015-07-15 15:25:42] INFO  WEBrick::HTTPServer#start done.
Exiting

kill left over selenium processes...
Selenium Standalone has exited with code null
kill: invalid option -- '9'

Usage:
 kill [options] <pid> [...]

Options:
 <pid> [...]            send signal to every <pid> listed
 -<signal>, -s, --signal <signal>
                        specify the <signal> to be sent
 -l, --list=[<signal>]  list all signal names, or convert one to a name
 -L, --table            list all signal names in a nice table

 -h, --help     display this help and exit
 -V, --version  output version information and exit

For more details see kill(1).

Rake task fails on CI

I use BuildKite for CI. I can run the rake protractor:spec command on my dev environment which is OSX. Everything seems to work ok. Now when I try to automate this for CI running Protractor seems to fail and this is the output:

screen shot 2015-02-26 at 4 10 58 pm

I can't see what exactly doesn't work because no output is saved but it looks like the code fails where the shell command is fired off to start running protractor. I think it's likely that the Protector command can not be found.

Database cleanup does not run after failed tests

This is similar to issue #19, only the database cleanup does not occur only when the tests fail when running the command 'rake protractor:spec_and_cleanup'. I am running protractor-rails 0.0.15. Ruby version 2.1.5.

This is my final outputs from a failed test:
...
[2015-05-22 10:32:17] INFO going to shutdown ...
[2015-05-22 10:32:17] INFO WEBrick::HTTPServer#start done.
Exiting
kill left over selenium processes...
Selenium Standalone has exited with code null

This is my final outputs from a passed test:
[2015-05-22 10:39:09] INFO going to shutdown ...
[2015-05-22 10:39:09] INFO WEBrick::HTTPServer#start done.
Exiting
kill left over selenium processes...
Selenium Standalone has exited with code null
rake db:test:prepare to cleanup for the next test session
** Invoke db:test:prepare (first_time)
...etc

Cannot run single protractor tests

I've recently upgrade from rake 10.3.2 to 10.4.2 and can no longer run single tests using the following

bundle exec rake protractor:spec -- --specs spec/javascripts/protractor_specs/users/edit_users_spec.js.coffee 

Can this be used to write tests for a purely ROR application?

Hey. Previously Ive only used Protractor for a AngularJS based web app, while obviously utilizing protractor's synchronization feature. Would I still be able to use this feature through this setup for my project's purely ROR app (no angular involved what so ever). Thanks, looking forward to your feedback :)

kill_server not working when using unicorn as server

After running rake protractor:spec I have to kill manually the server.

ps aux | grep rails | awk '{print $2}' | xargs kill -QUIT &> /dev/null

I'm using unicorn as default server (rails server starts unicorn).

Getting Error: Cannot find module 'coffee-script'

I really appreciate you kicking the tires on this gem that will help to further the rails-angularjs ecosystem. I went through the setup and got the point where I ran rake protractor:spec ; however, I got the below error message. Any thoughts? I also tried removing 'protractor_specs/**/*.coffee' from the protractor.conf.js file but that didn't help.

[2014-04-06 23:14:46] INFO  WEBrick 1.3.1
[2014-04-06 23:14:46] INFO  ruby 2.0.0 (2013-05-14) [x86_64-darwin12.4.0]
[2014-04-06 23:14:46] INFO  WEBrick::HTTPServer#start: pid=21652 port=4000

module.js:340
    throw err;
          ^
Error: Cannot find module 'coffee-script'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)

Test suites support

How can I run a specific test suite with this gem? Now i override spec task and added

require 'optparse'
...
# Suit setup
options = ''
OptionParser.new(args) do |opts|
  suiteKey = '--suite'
  opts.on("#{suiteKey} {suite}", 'Test suite name', String) do |suite|
    options = options + "#{suiteKey} #{suite}"
  end
end.parse!
...
success = system "protractor #{options} spec/javascripts/protractor.conf.js"

is it that true way? I'm not good in rails, thanks for response!

Nodejs is not installed.

Hi.
Command

rake protractor:install

raise error: Nodejs is not installed. Please installed Nodejs and run this script again

but NodeJS installed already...

I found hear checking node version, but for linux it nodejs -v

So I can't kick off testing... Can anybody fix this problem?

Thx!

testing with pow

anyone try to testing with pow?

I change the
baseUrl: 'http://localhost:4000',

setting but the setting is not working

rake protractor:spec_and_cleanup doesn't actually run cleanup

Hey,
when running rake protractor:spec_and_cleanup, it only runs spec on my machine. Running cleanup manually afterwards works (db gets seeded correctly), however this doesn't seem to be the intended behaviour.
I'm wondering if maybe i'm doing sth. wrong or this is a legit issue. Let me know if you need more information/logs/etc.
Cheers,
Sami

Generate the test report and take screenshot fails

I had the protractor.config.s file to use protractor-jasmine2-html-reporter for generate the test report and capture the screenshot for the failure test.If I run the test using the protractor then it is working fine.

Thanks
Sabin

rake protractor:example failing

Hi,

I'm running 'rake protractor:example' but it's failing because it's telling me I need to install Java.

Except, I've already done that and tested it works in Safari! Java 8.

Any luck or suggestions with how to get the example running?

Debug Mode

It would be nice to be able to run the tests in Protractor debugging mode.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.