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: 2024-09-28 17:49:16 UTC
README
描述
实现从PHPUnit_Extensions_SeleniumTestCase迁移到PHPUnit_Extensions_Selenium2TestCase的适配器。
如果用户的TestCase类使用旧格式(带有open、type、waitForPageToLoad等命令),则应该扩展Selenium2WithAdapterTestCase以支持Selenium 2 WebDriver。
限制
它不能正确处理javascript操作。如果您使用带有ajax操作或点击时可见性变化的click,则需要使用WaitUntil重写测试代码。这使得Selenium2WithAdapterTestCase变得无用。
实现的方法
类提供了以下方法的绑定
- open
- type
- click
- select
- isTextPresent
- isElementPresent
- getText
许可证
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
https://apache.ac.cn/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.