姒傝堪
2016.10.13锛孲elenium3.0姝e紡鍙戝竷锛屽畼鏂硅鏄庡涓嬶細
The major change in Selenium 3.0 is we're removing the original Selenium Core implementation and replacing it with one backed by WebDriver. This will affect all users of the Selenium RC APIs. For more information, please see the previous post .鈥︹€?a target=\"_blank\" href="https://seleniumhq.wordpress.com/2016/10/13/selenium-3-0-out-now/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+Selenium+%28The+Official+Selenium+Blog%29">>>more
瀹夎
棣栧厛锛屾墽琛宲ip install selenium,濡傛灉浣犳槸2016骞?0鏈堝悗棣栨鐢ㄨ繖涓紝浣犱細鎯婂鍦板彂鐜帮紝鑷姩瀹夎鐨勬槸Selenium3.0鐗堟湰銆
娴嬭瘯瀹夎
鎺ヤ笅鏉ワ紝鎴戜滑鍦≒ython瑙i噴鍣ㄤ腑娴嬭瘯涓€涓嬭兘涓嶈兘鐢紝缁撴灉锛屾垜浠亣鍒颁簡涓€涓猈ebDriverException鐨勫紓甯革細selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
寰堟樉鐒讹紝寮傚父涓鐨勫緢鏄庣‘锛孅a target=\"_blank\" name="OLE_LINK1"/>geckodriver闇€瑕佸湪PATH涓€傛垜浠浣曡В鍐冲憿锛
鍏跺疄锛屾垜浠彲浠ュ湪缃戜笂鎼滅储geckodriver锛岀劧鍚庝笅杞斤紝鎶婂畠鏀惧埌涓€涓狿ATH涓嵆鍙€傝繕鏈変竴绉嶆瘮杈冨父鐢ㄧ殑鏂规硶灏辨槸锛氭妸閿欒淇℃伅澶嶅埗涓€涓嬶紝鍦ㄧ綉涓婃悳绱㈢湅鐪嬶紝涓栫晫杩欎箞澶э紝99%鏈変汉閬囧埌杩囧悓鏍风殑闂銆
闂瑙e喅
鎴戜滑鎶婁笅杞藉ソ鐨刧eckodriver.exe鏀惧湪C:\Python27\Scripts鐩綍涓嬶紝鍐嶈瘯涓€娆°€
鏈夌殑鏈嬪弸浼氶棶锛屼负浠€涔堣鏀惧湪C:\Python27\Scripts鍛紵杩欐槸鍥犱负涓汉姣旇緝鎳掞紝鎴戠煡閬揷:\Python27\Scripts宸茬粡鍦≒ATH涓簡锛岃繖鏍锋垜灏变笉鐢ㄥ啀鍗曠嫭涓篻eckodriver.exe璁剧疆PATH浜嗐€
鏄笉鏄垚鍔熶簡鍛€锛熸垜鏄垚鍔熶簡锛屽涓嬪浘锛