Downloaded InternetExplorerDriver,但我不知道如何在PHP测试中启动它。我使用https://github.com/chibimagic/WebDriver-PHP/Howto在PHPUnit测试中启动InternetExplorerDriver
3
A
回答
0
使用
查看包含SampleTest.php。启动硒2独立的服务器(http://code.google.com/p/selenium/downloads/list),并运行测试:
phpunit SampleTest.php
确保PHPUnit的是在您的路径!
测试
没有测试的代码是什么?与运行测试:
phpunit WebDriverSelectorTest.php
phpunit WebDriverXPathTest.php
phpunit WebDriverColorTest.php
0
强似 '火狐' 的,通过 'Internet Explorer的':
$this->setBrowser('internet explorer');
5
- 下载来自网站 https://code.google.com/p/selenium/downloads/list硒的服务器独立,2.31.0.jar
- 从站点https://code.google.com/p/selenium/downloads/list下载IEDriverServer_Win32_2.31.0.zip,然后解压缩
- 将两个下载的文件添加到一个目录中,并将此目录添加到系统变量路径
- 添加C:\ Program Files文件\ Internet Explorer中成系统变量路径
打开命令提示符下键入
java -jar -Dwebdriver.ie.driver=IEDriverServer.exe selenium-server-standalone-2.31.0.jar
回到你的webdriver设置和更改 '火狐' 到' Internet Explorer'
然后你就可以在ie中开始测试,但是不要忘记改变ie的默认缩放比例,从125%到100%。
相关问题
- 1. phpunit随机重新启动测试
- 2. Phpunit启动所有测试或不启动所有测试,忽略配置
- 3. HowTo PHPUnit assertFunction
- 4. 在PHPUnit中测试异常
- 5. 在phpunit测试中回显
- 6. 测试iterables PHPUnit中
- 7. Mysql的SAVEPOINT在PHPUnit测试
- 8. getEntityManager PHPUnit中类测试
- 9. PHPUnit - REST API测试
- 10. PHPUnit配置测试
- 11. Phpunit权限测试
- 12. PHPUnit测试实例
- 13. PHPUnit进行测试
- 14. PHPUnit测试分离
- 15. 在laravel中执行phpunit测试
- 16. 标题在Laravel/PHPUnit测试中下降
- 17. 如何在Windows中运行PHPUnit测试?
- 18. 不在PHPUnit中运行一些测试?
- 19. 在PHPUnit中测试表单输入
- 20. 在PHPUnit测试中隔离Zend_Session
- 21. 在PhpUnit测试中匹配JsonStructure - Laravel 5.4
- 22. 如何在PHPUnit中测试STDIN
- 23. 如何在PHPUnit中测试cmp()
- 24. 使用phpunit动态按钮href测试
- 25. 使用PHPUnit创建动态测试
- 26. 的PHPUnit - 测试自动加载类
- 27. 调试Eclipse中的一些PhpUnit测试
- 28. 如何在laravel中使用phpunit测试特定测试类
- 29. HowTo - 在Mac上测试JS Touch事件
- 30. 在测试环境中启动rails
问题是关于使用[InternetExplorerDriver(http://selenium.googlecode.com/files/IEDriverServer_Win32_2.25.3.zip) – 2012-08-16 12:17:38
你不能在浏览器中使用该程序运行HOWTO现有PHPUnit测试,使用PHP CLI(命令行界面) – Julien 2012-08-16 12:34:38
@ atmon3r [SampleTest.php](https://github.com/chibimagic/WebDriver-PHP/blob/master/SampleTest.php)被硬编码为使用Firefox。问题是他必须在该文件中更改哪些内容才能使用Internet Explorer而不是Firefox。 – 2012-08-16 23:55:09