appdevl / phpunit-selenium2-adapter
dev-master
2015-06-25 21:35 UTC
Requires
- php: >=5.3
- phpunit/phpunit: >=4.0
This package is not auto-updated.
Last update: 2025-09-13 22:42:16 UTC
README
Description
Implements adapter for migration from PHPUnit_Extensions_SeleniumTestCase to PHPUnit_Extensions_Selenium2TestCase.
If user's TestCase class is implemented with old format (with commands like open, type, waitForPageToLoad), it should extend Selenium2WithAdapterTestCase for Selenium 2 WebDriver support.
Restrictions
It does not work properly with javascript actions. You have to rewrite you test code with WaitUntil if you use click with ajax actions or click with visibility changes. It makes this Selenium2WithAdapterTestCase useless.
Implemented methods
Class provides bindings for methods:
- open
- type
- click
- select
- isTextPresent
- isElementPresent
- getText
License
Copyright 2013 Roman Nix
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.