2017-03-13 23 views
0

Robot Frameworkで自動化テストにChromeを使用したいと思います。ここに私の設定は次のとおりです。ロボットフレームワークがPATH変数でクロムドライバを見つけることができません

*User variables:* 
name: webdriver.chrome.driver 
value: C:\chromedriver_win32\chromedriver.exe 

name: PATH 
values: ......;C:\chromedriver_win32\chromedriver.exe 

マイコード:コマンドの実行後

*** Settings *** 

Library BuiltIn 
Library Selenium2Library 
Library SikuliLibrary 
Library OperatingSystem 

*** Variables *** 
${HOST} = VM 
${URL} = http://VM.com 

${BROWSER} = Chrome 


*** Test Cases *** 
Begin Web Test 
    Open Browser ${URL} ${BROWSER} 
    maximize browser window 

:pybotのtest.robot:

============================================================================== 
[ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: No brows 
er is open 
Test Case                FException 
AttributeError: "'Service' object has no attribute 'process'" in <bound method 
Service.__del__ of <selenium.webdriver.chrome.service.Service object at 0x000000 
0003670278>> ignored 
Test Case                | FAIL | 
Setup failed: 
WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Plea 
se see https://sites.google.com/a/chromium.org/chromedriver/home 
------------------------------------------------------------------------------ 

ここで何が悪いのでしょうか?

答えて

4

「chromedriver」実行ファイルがPATHにあることが必要である」場所chromedriverのがパスにする必要があることを意味していただきありがとうございます。あなたの場合、パスは "...; C:\ chromedriver_win32"にする必要があります。 PATHには、実行可能ファイルではなくフォルダが含まれています。

+0

ありがとうございました。短くて良い答え。 – Rumen

関連する問題