2014-09-25 46 views

回答

1

Selenium爲Firefox提供本機支持。按照該文件,

Controls the Firefox browser using a Firefox plugin. The Firefox Profile that is used is stripped down from what is installed on the machine to only include the Selenium WebDriver.xpi (plugin).

然而,Chrome和IE瀏覽器的工作方式不同,

鉻司機: WebDriver works with Chrome through the chromedriver binary (found on the chromium project’s download page). You need to have both chromedriver and a version of chrome browser installed. chromedriver needs to be placed somewhere on your system’s path in order for WebDriver to automatically discover it. The Chrome browser itself is discovered by chromedriver in the default installation path.

IE僅適用於窗口, This driver is controlled by a .dll and is thus only available on Windows OS. Each Selenium release has its core functionality tested against versions 6, 7 and 8 on XP, and 9 on Windows7.

你可以參考爲了更好的理解文件Selenium Document

相關問題