Commit Graph

153 Commits

Author SHA1 Message Date
Paul Young
d153ae7158 Fixed guzzle client with check for guzzle 6 and reverted guzzle 4 and 5 to their correct building. 2016-02-18 09:10:41 +10:30
Konstantin Kudryashov
a08fd571a2 Merge pull request #212 from getsaucey/develop
Added examples in Step Definitions
2016-02-15 07:53:33 +00:00
James Lee
7f0c691d24 fixed guzzle parameter passing
Guzzle does not expect 'default' array to be passed to the constructor. If passed as a default key, guzzle will not updates it's defaults.
2016-02-05 16:06:30 -06:00
Sajjad Hossain
2b0bdece03 removed incorrect usage of Given, removed excess comment breaks, fixed order of methods (done in error), removed some instances of AND 2015-06-09 13:14:48 -04:00
Sajjad Hossain
f07c3e96e4 added addtional documents, added examples to all step definitions for additional clarity when running 'behat -di' or 'behat -dl' 2015-06-01 15:08:04 -04:00
Sajjad Hossain
1d12b01eeb added addtional documents, added examples to all step definitions for additional clarity when running 'behat -di' or 'behat -dl' 2015-06-01 12:39:30 -04:00
Sajjad Hossain
981c7f6650 another pull request, containing same step definition via 'vendor/bin/behat -di' 2015-04-05 22:48:44 -04:00
Sajjad Hossain
353349551e added example snippets in MinkExtenstion to be used with 'vendor/bin/behat -di' as definitions 2015-04-05 22:32:16 -04:00
gries
a15cff9445 Add emulator option to BrowserStack capabilities. 2015-03-10 09:20:26 +01:00
Christophe Coevoet
ba5329be65 Merge pull request #187 from csarrazi/master
[Easy-Pick] Fixed Selenium2 ignoreZoomSetting configuration in Selenium2Factory
2015-01-23 01:01:18 +01:00
Christophe Coevoet
f1df9a0207 Merge pull request #186 from stof/remove_config_defaults
Remove default values for capabilities
2015-01-23 00:59:31 +01:00
Charles Sarrazin
c909592691 Fixed configuration for Selenium2 factory
Changing the scalarNode to a booleanNode actually fixes a bug in the latest version of IEDriverServer + Selenium2, which triggers a segmentation fault if the value given for ignoreZoomSetting is a string and not a boolean (which is the case currently).
A simple check for this is to try launching Behat + mink + Selenium2 with Selenium2 + IEDriverServer, with the following defaults:

```yml
default:
  suites:
    default:
      contexts:
        - Behat\MinkExtension\Context\MinkContext
  extensions:
    Behat\MinkExtension:
      javascript_session: default
        sessions:
          default:
            selenium2:
              browser: "internet explorer"
```

Adding the capabilities with ignoreZoomSetting set to true or false also fixes the issue, but not at the source of the problem.
2015-01-21 14:45:58 +01:00
Christophe Coevoet
819063c58b Unset the custom-data node when it is empty
Closes #179
2015-01-19 02:01:08 +01:00
Christophe Coevoet
0bb80effb3 Remove default values for capabilities
This lets Selenium choose its own default values without duplicating
them.
Replaces #183
Refs #179
2015-01-19 01:49:01 +01:00
Christophe Coevoet
d17af4bc00 Merge pull request #177 from dantleech/throw-exception-mink-not-set
Throw exception if mink has not been set in context
2015-01-19 00:21:28 +01:00
gggeek
a0bd5412c1 Fix issue 184: user not allowed to set tags sent to selenium 2015-01-08 18:17:02 +00:00
dantleech
541b1462de Throw exception if mink has not been set in context 2014-12-02 15:45:15 +01:00
everzet
06a4cb5661 Introduce RawMinkContext::visitPath() helper method 2014-09-23 11:59:27 +01:00
Christophe Coevoet
652f0e22a5 Added the support of Goutte 2.0 2014-05-15 21:59:46 +02:00
Christophe Coevoet
14d3596895 Renamed the extension class to follow the Behat shortcut convention 2014-05-08 13:45:26 +02:00
Christophe Coevoet
80cd741d26 Added capability guessing for Jenkins
Replaces #140
2014-05-08 13:18:21 +02:00
Christophe Coevoet
84bccc838c Improved the guessing of capabilities on Travis
The logic is not duplicated anymore between BrowserStack and Travis, and
user-defined capabilities now win over guessed capabilities.
Refs #140
2014-05-08 13:15:15 +02:00
Christophe Coevoet
a8d05cd478 Merge branch '1.3' into 2.0
Conflicts:
	src/Behat/MinkExtension/Context/MinkDictionary.php
2014-04-27 14:04:32 +02:00
Christophe Coevoet
0642b680b6 Fixed the regex of the step matching url to avoid breaking formatters
The inner group needs to be non-capturing. Fixes #99
2014-04-27 13:55:27 +02:00
Christophe Coevoet
5fd83a8d15 Added support of optional full paths for uploads in the trait
This was implemented in the MinkContext in f4b9700 but the trait was not
in sync.
2014-04-27 13:47:49 +02:00
Christophe Coevoet
6b02ddf274 Added some missing SauceLabs capabilities
Closes #126
2014-04-26 23:50:11 +02:00
Christophe Coevoet
82fb06bb57 Renamed the SauceLabsFactory for consistent casing 2014-04-26 23:50:08 +02:00
Christophe Coevoet
3b00c091e9 Added a factory configuring the Selenium2Driver for BrowserStack
Closes #103
Replaces #133
2014-04-26 23:50:00 +02:00
Christophe Coevoet
1843188aea Added a way to specify custom capabilities for Selenium2
This allows configuring capabilities which are specific to other drivers
or custom implementations.
Fixes #129
Fixes #125
Refs #135
2014-04-26 23:03:50 +02:00
Christophe Coevoet
c6efdf6940 Refactored the handling of Selenium2 capabilities
Saucelabs-specific capabilities are removed from the Selenium2Factory in
favor of the SaucelabsFactory.
The SaucelabsFactory now supports all normal capabilities (inherited from
the Selenium2Factory) and the list of Saucelabs-specific ones is
completed.
2014-04-26 22:52:05 +02:00
Christophe Coevoet
888ab86a72 Added the possibility to define the default session per suite 2014-04-26 20:23:19 +02:00
Christophe Coevoet
faaa8cc7fe Updated the listeners to use the new event classes 2014-03-12 03:09:00 +01:00
Christophe Coevoet
b1740f4c86 Merge pull request #122 from stof/remove_dictionary
Removed the MinkDictionary
2014-01-24 16:19:34 -08:00
Christophe Coevoet
c1336bee32 Cleaned the ZombieDriver configuration
The ZombieDriver expects a single argument when passing a ZombieServer,
and it ignores any subsequent argument. Thus, it never deals with a
Connection itself (the server does).
Closes #23
2014-01-18 11:13:51 +01:00
Christophe Coevoet
5a60ac1190 Removed the MinkDictionary
Providing this trait required duplicating all step definitions, thus
making the maintenance harder. The possibility to use several contexts in
the same suite in Behat 3 is cleaner than using this trait. Thus, the
special logic used to detect this trait was clearly a hack.
Closes #120
2014-01-18 11:05:52 +01:00
Konstantin Kudryashov
8021fc626b Merge pull request #121 from stof/driver_factory
Refactored the configuration of sessions
2014-01-14 01:01:56 -08:00
Christophe Coevoet
e569fd7bc1 Added a shortcut syntax for the configuration of sessions 2014-01-13 23:06:23 +01:00
Christophe Coevoet
4a398672ee Fixed the steps printing some output 2014-01-11 00:58:21 +01:00
Christophe Coevoet
58ca78aa59 Added some validation of the default session and javascript session 2014-01-11 00:27:14 +01:00
Christophe Coevoet
3ee16c4b87 Refactored the configuration of sessions
The configuration now makes sessions a first-class citizen instead of
being centered around drivers. This allows defining several session based
on the same driver type.
Instead of allowing other extensions to register their own sessions to add
new drivers, they can now register a DriverFactory in the MinkExtension
during the extension initialization to make a new driver type available.
2014-01-11 00:13:12 +01:00
Christophe Coevoet
589cd05897 Added the initialize method in the extension 2014-01-10 20:47:34 +01:00
Christophe Coevoet
8f5332371a Updated the code for latest changes done in Behat 2014-01-05 00:48:09 +01:00
Christophe Coevoet
2c521b68ad Fixed the support of the insulated tag at the feature level 2014-01-04 17:16:54 +01:00
Christophe Coevoet
d79dc1ae71 Refactored the extension for Behat 3.0 2014-01-04 14:59:18 +01:00
Christophe Coevoet
24012515e5 Moved the license header to the top of the file 2014-01-04 11:53:25 +01:00
Robert Schönthal
74aa54a6f3 fixed indentation 2014-01-02 16:42:40 +01:00
Robert Schönthal
4779f3d233 removed unused use 2014-01-02 16:37:57 +01:00
Robert Schönthal
18ec75d611 made compatible with behat 3rc1 2014-01-02 16:32:32 +01:00
Klein Florian
2ebc88634b make it compatible with behat v3 2013-10-29 14:04:29 +01:00
Christophe Coevoet
265aee68b3 Fixed the configuration for Selenium2 capabilities
Some capabilities need to have a dash in their name to match the name
expected by Selenium2 (which uses a mix of camel cased and dashed names).
This fix makes the MinkExtension incompatible with Symfony 2.0 and 2.1 but
they already reached their end of maintenance anyway.
Closes #91
2013-09-23 18:44:37 +02:00