Protractor + Selium: HTTP ERROR: 403 Forbidden for Proxy

667 views
Skip to first unread message

César Costa

unread,
Nov 15, 2013, 9:30:52 PM11/15/13
to ang...@googlegroups.com
Hello,

I am trying to configure my test environment. First, i configure with karma, but i found an angular documentation telling the karma will be change by protractor. 

"If you're starting a new Angular project, you may want to look into using Protractor, as it is going to replace the current method of E2E Testing in the near future."

I start selenium-server-standalone-2.37.0 at port 4444: 00:25:04.246 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub

and this is my protractor configuration file:

  1 exports.config = {
  2   chromeDriver: './spec/selenium/chromedriver',
  3   seleniumAddress: 'http://127.0.0.1:4444/wd/hub',
  4   specs: [
  5     './../../javascript/**/*_spec.js'
  6   ],
  7 
  8   capabilities: {
  9     'browserName': 'chrome'
 10   },
 11   baseUrl: 'http://127.0.0.1:4444/wd/hub',
 12 
 13   rootElement: 'html',
 14 
 15   jasmineNodeOpts: {
 16     onComplete: null,
 17     isVerbose: true,
 18     showColors: true,
 19     includeStackTrace: true,
 20     defaultTimeoutInterval: 30000
 21   } 
 22 };


But, when i run my simple test which go to an url and only prints a string with console.log, i get this error in browser:

HTTP ERROR: 403

Forbidden for Proxy

RequestURI=/reference_matrices/new

Powered by Jetty://

has anyone had this problem?

Sorry for my english :(.




OpenNota

unread,
Nov 15, 2013, 11:55:09 PM11/15/13
to ang...@googlegroups.com
Wrong baseUrl.

  // ----- More information for your tests ----
  //
  // A base URL for your application under test. Calls to protractor.get()
  // with relative paths will be prepended with this.
  baseUrl: 'http://localhost:9000',

César Barone

unread,
Nov 16, 2013, 6:34:35 AM11/16/13
to ang...@googlegroups.com
I change to rails server url localhost:3000 and now working. I really thinked the correct url is the selenium url.

Thanks.


2013/11/16 OpenNota <open...@gmail.com>

--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/4E501WpKZqo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages