• Skip to main content
  • Skip to primary sidebar

Ryan McCormick

SOLVED: Protractor Config to show iframes in PhantomJS

June 29, 2017 by Ryan Leave a Comment

If you are reading this post, you probably figured out that PhantomJS won’t display iframes without additional configuration out of the box. The flags that would normally be passed are: --ignore-ssl-errors=true --web-security=false

I am adding this post as a good place to reference this later on. I found a bunch of answers online with this one buried in an issue under the Protractor project on Github.

The following snippet should be added to your protractor.conf.js file:

capabilities: {
	'browserName': 'phantomjs',
	'phantomjs.cli.args': ['--ignore-ssl-errors=true',  '--web-security=false']
}

Filed Under: Protractor Tagged With: angular, angular 2, e2e, protractor

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • Force Quit Kill all Chrome Windows MacOS
  • SOLVED: Angular 6 CLI Karma Stuck in Single Run | Karma Stops Running
  • How to Manually Install Java 8 on Ubuntu 18.04 LTS
  • Remove VirtualBox from Ubuntu 16.04 Xenial
  • Clear all Node Modules Folders Recursively Mac/Linux

Recent Comments

  1. KKV on Webstorm adding spaces between imports and braces | JavaScript and TypeScript
  2. jusopi on Clear all Node Modules Folders Recursively Mac/Linux
  3. Qaisar Irfan on Clear all Node Modules Folders Recursively Mac/Linux
  4. mustafa on Remove VirtualBox from Ubuntu 16.04 Xenial
  5. Pourya on How to Manually Install Java 8 on Ubuntu 18.04 LTS

Copyright © 2025 · Magazine Pro on Genesis Framework · WordPress · Log in