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