如何在PHPUnit测试中启动InternetExplorerDriver

CaP*_*ind 3 php selenium internet-explorer phpunit

下载了InternetExplorerDriver,但我不知道如何在php测试中启动它.我正在使用https://github.com/chibimagic/WebDriver-PHP/

mac*_*Jun 5

  1. 从网站https://code.google.com/p/selenium/downloads/list下载selenium-server-standalone-2.31.0.jar
  2. 从网站https://code.google.com/p/selenium/downloads/list下载IEDriverServer_Win32_2.31.0.zip ,然后解压缩
  3. 将两个下载的文件添加到一个目录中,并将此dir添加到系统变量路径
  4. 将C:\ Program Files\Internet Explorer添加到系统变量路径中
  5. 打开命令提示符类型

    java -jar -Dwebdriver.ie.driver=IEDriverServer.exe selenium-server-standalone-2.31.0.jar

  6. 返回到您的webdriver设置并将'firefox'更改为'Internet explorer'

  7. 然后你可以开始测试,但不要忘记更改即默认从125%缩放到100%.