Open zeeshanyshaikh opened 6 years ago
Sorry, I don't know the issues of modern firefox and how it handles SSL. Maybe there are similar issues with other testing tools? If so I could help to port their solution to your case
I got this (https://sqa.stackexchange.com/questions/13526/select-ssl-certificates-using-selenium-web-driver) and some other post similar to this (using firefox profile). But all these are in JAVA. Can you check if this can be ported?
Looks like you need to create Firefox profile and add it to capabilities list:
modules:
enabled:
- WebDriver:
url: 'http://localhost/'
browser: firefox
window_size: 1024x768
capabilities:
firefox_profile: '~/firefox-profiles/codeception-profile.zip.b64'
If that doesn't help, you can set capabilities dynamically: http://codeception.com/docs/modules/WebDriver#_capabilities
You will need to learn how a profile can be added in facebook/php-webdriver library.
Hi, @DavertMik I did try creating firefox profile (zip.b64) and added to capabilities but getting the same issue. I have doubt in two things:
any update on this?
Parameter in suit configuration must be capabilities, not desiredCapabilities.
What are you trying to achieve?
Automating application which accepts an SSL certificate before loading login page (2-way handshake)
What do you get instead?
Automated Firefox window is unable to fetch the SSL cert installed in browser and shows 400 error page
Details
composer show
) behat/gherkin v4.4.5 Gherkin DSL parser for PHP 5.3 codeception/codeception 2.3.6 BDD-style testing framework doctrine/instantiator 1.1.0 A small, lightweight utility to instantiate objects in PHP without invoking their constructors facebook/webdriver 1.4.1 A PHP client for Selenium WebDriver guzzlehttp/guzzle 6.3.0 Guzzle is a PHP HTTP client library guzzlehttp/promises v1.3.1 Guzzle promises library guzzlehttp/psr7 1.4.2 PSR-7 message implementation that also provides common utility methods myclabs/deep-copy 1.7.0 Create deep copies (clones) of your objects phar-io/manifest 1.0.1 Component for reading phar.io manifest information from a PHP Archive (PHAR) phar-io/version 1.0.1 Library for handling version information and constraints phpdocumentor/reflection-common 1.0.1 Common reflection classes used by phpdocumentor to reflect the code structure phpdocumentor/reflection-docblock 4.1.1 With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock. phpdocumentor/type-resolver 0.4.0 phpspec/prophecy v1.7.2 Highly opinionated mocking framework for PHP 5.3+ phpunit/php-code-coverage 5.2.2 Library that provides collection, processing, and rendering functionality for PHP code coverage information. phpunit/php-file-iterator 1.4.2 FilterIterator implementation that filters files based on a list of suffixes. phpunit/php-text-template 1.2.1 Simple template engine. phpunit/php-timer 1.0.9 Utility class for timing phpunit/php-token-stream 2.0.1 Wrapper around PHP's tokenizer extension. phpunit/phpunit 6.4.3 The PHP Unit Testing framework. phpunit/phpunit-mock-objects 4.0.4 Mock Object library for PHPUnit psr/http-message 1.0.1 Common interface for HTTP messages psr/log 1.0.2 Common interface for logging libraries sebastian/code-unit-reverse-lookup 1.0.1 Looks up which function or method a line of code belongs to sebastian/comparator 2.0.2 Provides the functionality to compare PHP values for equality sebastian/diff 2.0.1 Diff implementation sebastian/environment 3.1.0 Provides functionality to handle HHVM/PHP environments sebastian/exporter 3.1.0 Provides the functionality to export PHP variables for visualization sebastian/global-state 2.0.0 Snapshotting of global state sebastian/object-enumerator 3.0.3 Traverses array structures and object graphs to enumerate all referenced objects sebastian/object-reflector 1.1.1 Allows reflection of object attributes, including inherited and non-public ones sebastian/recursion-context 3.0.0 Provides functionality to recursively process PHP variables sebastian/resource-operations 1.0.0 Provides a list of PHP built-in functions that operate on resources sebastian/version 2.0.1 Library that helps with managing the version number of Git-hosted PHP projects stecman/symfony-console-completion 0.7.0 Automatic BASH completion for Symfony Console Component based applications. symfony/browser-kit v3.3.10 Symfony BrowserKit Component symfony/console v3.3.10 Symfony Console Component symfony/css-selector v3.3.10 Symfony CssSelector Component symfony/debug v3.3.10 Symfony Debug Component symfony/dom-crawler v3.3.10 Symfony DomCrawler Component symfony/event-dispatcher v3.3.10 Symfony EventDispatcher Component symfony/finder v3.3.10 Symfony Finder Component symfony/polyfill-mbstring v1.6.0 Symfony polyfill for the Mbstring extension symfony/process v3.3.10 Symfony Process Component symfony/yaml v3.3.10 Symfony Yaml Component theseer/tokenizer 1.1.0 A small library for converting tokenized PHP source code into XML and potentially other formats webmozart/assert 1.2.0 Assertions to validate method input/output with nice error messages.