本地運行Selenium 1(不通過網格)所有支持的瀏覽器字符串都以*爲前綴。假設Selenium-Server已經啓動了在Selenium 1中,爲什麼所有瀏覽器命令都以asterix爲前綴?
return new DefaultSelenium("localhost", 4444, "*firefox", "http://www.google.com");
這只是一個約定,還是它有一些功能的目的?請注意,我們使用不受支持的瀏覽器類型執行是獲取受支持瀏覽器列表的好方法。
return new DefaultSelenium("localhost", 4444, "firefox", "http://www.google.com");