2016-04-24 79 views
0

嗨,我試圖在Ubuntu上安裝Rf(VM盒)如下: http://testingknols.blogspot.com/2014/05/robot-framework-installation-on-ubuntu.html 但問題在於硒庫。 當我使用「S蟒蛇」我得到了「未找到命令」ubuntu上的機器人框架安裝selenium2library不能

當我使用termina消息: 進口Selenium2Library我可以看到: 他計劃「進口」可以在下面的包中找到: * imagemagick * graphicsmagick-imagemagick-compat 嘗試:sudo apt-get install 我該怎麼辦? 我的Python版本是2.7.6

+1

什麼是「S蟒蛇「?你能否展示_exactly_你如何試圖運行測試,以及_exact_錯誤消息? –

+0

*「當我使用時:導入Selenium2Library我可以看到:他的程序'導入'可以在下面的包中找到:* imagemagick *」*因爲你不在Python中;這是外殼/終端。 – jDo

回答

0

我不知道什麼是「S python」。 我剛安裝了硒庫。您可以使用控制檯安裝它:

$ pip install robotframework-selenium2library 

然後你就可以使用這個庫在你的.robot文件導入,測試的設置塊中寫:

Library  Selenium2Library